From Mexico.purplecow.org

(Difference between revisions)
Jump to: navigation, search

Revision as of 14:52, 15 September 2010

Hung GNU screen

Symptoms

You lost a session, probably when your laptop went to sleep or something. You try to
screen -d -r
from a new session and screen hangs. A truss shows that reattach process doing nothing but maybe
pause
. Ugly, huh?

Diagnosis

Either the old attached process is still hanging around (check for the dead session by the old tty name) or another bastard has gone sour ...

utmp_update

This can hang and cause screen to wait forever. Killing it fixes it.

Prescription

fuser /tmp/screens/S-username/blah

Kill the unwanted process and you should be good to go.