[Bug 984] Hangup to script while forced command ...

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Mar 13 16:00:58 EST 2006


http://bugzilla.mindrot.org/show_bug.cgi?id=984


djm at mindrot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #5 from djm at mindrot.org  2006-03-13 16:00 -------
This isn't an SSH bug, your SIGHUPs are a result of the process' controlling
terminal going away. You can either:

1. Run without a pty as Darren suggested

2. Ensure that startx is called without a controlling terminal. Linux has a
setsid(8) command for this, otherwise you might be able to use something like: 

      perl -e 'use POSIX ; setsid();'

3. Make your script stick around until the X session exits by not backgrounding
itself or by explictly calling the "wait" shell builtin.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list