[Bug 273] New: sshd hangs on shell exit if user spawned child with /bin/nohup

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Jun 12 05:54:38 EST 2002


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

           Summary: sshd hangs on shell exit if user spawned child with
                    /bin/nohup
           Product: Portable OpenSSH
           Version: -current
          Platform: UltraSparc
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sshd
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: kerry.schwab at wnco.com


Basically, if during a remote session, the user starts
something with "nohup", sshd hangs when they try to
exit the shell.

Running truss on sshd shows it running poll() on fd0,fd1,fd2.

If I wrap nohup with something that closes stdin/out/err before
it calls nohup, everything works fine.

So, I suspect that for whatever reason, sshd doesn't get the SIGCHLD
from the shell (ksh in this case), and the fd0/1/2 are open because
the process spawned via nohup has them open.

This problem exists in both 3.1p1 and 3.2.3p3.



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



More information about the openssh-unix-dev mailing list