[Bug 396] New: sshd orphans processes when no pty allocated
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Thu Sep 12 23:23:52 EST 2002
http://bugzilla.mindrot.org/show_bug.cgi?id=396
Summary: sshd orphans processes when no pty allocated
Product: Portable OpenSSH
Version: -current
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: dtucker at zip.com.au
When using ssh to run a command that doesn't terminate, sshd will leave the
process orphaned when it exits. Using ssh -t to force a pty allocation allows
the process to terminate when sshd does (presumably when the pty closes). This
has been observed on Solaris (7,8) and AIX, and probably occurs on others.
# ssh localhost nc localhost 22
SSH-2.0-OpenSSH_3.4p1
[kill ssh from another window]
# ps -eaf |grep nc
dtucker 5919 1 0 21:05:08 ? 0:00 nc localhost 22
The following patch (against -cvs) sends a HUP to the child process(es) when
sshd exits for protcols 1 and 2. It assumes that there's only one session for
v1. (Is that valid?)
It has been tested on Solaris 7 (including regression tests).
------- 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