The lsof -F p /usr/bin/emacs22-gtk call hangs because an unrelated process was stuck waiting on an nfs server that had disappeared. So in essence, the problem is a symptom of nfs being very stupid, see https://bugzilla.redhat.com/show_bug.cgi?id=131712.
But the lsof call is only used to check if emacs is running and print a warning, so it would be simple to replace it with something that does not risk hanging. pidof /usr/bin/emacs22-gtk for example could be used as a drop-in replacement.
The lsof -F p /usr/bin/ emacs22- gtk call hangs because an unrelated process was stuck waiting on an nfs server that had disappeared. So in essence, the problem is a symptom of nfs being very stupid, see https:/ /bugzilla. redhat. com/show_ bug.cgi? id=131712.
But the lsof call is only used to check if emacs is running and print a warning, so it would be simple to replace it with something that does not risk hanging. pidof /usr/bin/ emacs22- gtk for example could be used as a drop-in replacement.