fetch gid of the process