|
RE: screen refusing to reattach: msg#00025gnu.screen.user
Hi, > On Apr 15, 05 10:11:13 +0200, Joakim Ahlén wrote: > > However, i do have a foolproof way of getting back control of the > > screen. It may sound really obscure - but it works EVERY time. > > > > * Run screen -d -r, which hangs. Leave it hanging. > > * Start up another SSH session, and su to root > > * Find the PID of the SCREEN-process (with capitals), and > run "strace > > -p [pid of SCREEN] 2>/dev/null" > > what would strace print when not redirecting to /dev/null? > I could imagine it hangs in a write() or read(), right? > No, the strace doesn't hang. Directly when starting strace, the hanged "screen -d -r" gets unlocked and works fine. This makes strace print what usually is printed if you strace a normal screen-process. Lots of system calls. Of course, the pipe to /dev/null is not needed for this hack to work, it just makes your terminal quiet. //j |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: screen refusing to reattach: 00025, Joakim Ahlén |
|---|---|
| Next by Date: | Re: screen refusing to reattach: 00025, Juergen Weigert |
| Previous by Thread: | Re: screen refusing to reattachi: 00025, Juergen Weigert |
| Next by Thread: | Re: screen refusing to reattach: 00025, Juergen Weigert |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |