Subject: kern/1437: process with a pty still lives after the parent got killed
To: None <gnats-bugs@gnats.netbsd.org>
From: None <onno@simplex.nl>
List: netbsd-bugs
Date: 09/05/1995 18:44:34
>Number: 1437
>Category: kern
>Synopsis: process with a pty still lives after the parent got killed
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 5 12:50:00 1995
>Last-Modified:
>Originator: & van der Linden
>Organization:
>Release: Sep 2nd
>Environment:
System: NetBSD sheep 1.0A NetBSD 1.0A (SHEEP) #28: Sat Sep 2 21:59:52 MET DST 1995 root@sheep:/usr/src/sys/arch/i386/compile/SHEEP i386
>Description:
Both window(1) and screen (from ftp.uni-erlangen.de/pub/utilities/screen)
still have processes running on pty's after you've ended the utility.
>How-To-Repeat:
Output of ps lx before the start of window(1):
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND
10 106 1 0 18 0 624 572 pause Ss v1 0:00.65 -tcsh (tcsh)
10 343 106 5 29 0 260 176 - R+ v1 0:00.04 ps -lx
Output of ps x while using window(1):
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND
10 345 344 3 3 0 612 500 ttyin Ss+ p0 0:00.19 -csh (tcsh)
10 346 344 0 18 0 612 500 pause Ss p1 0:00.24 -csh (tcsh)
10 349 346 0 28 0 264 176 - R+ p1 0:00.04 ps -lx
10 106 1 0 18 0 624 576 pause Ss v1 0:00.67 -tcsh (tcsh)
10 344 106 0 2 0 252 496 select S+ v1 0:00.17 window
Output of ps x after quiting window(1):
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND
-> 10 345 1 3 3 0 612 500 ttyin Ss+ p0 0:00.19 -csh (tcsh)
-> 10 346 1 0 3 0 612 512 ttyin Ss+ p1 0:00.24 -csh (tcsh)
10 106 1 1 18 0 624 568 pause Ss v1 0:00.69 -tcsh (tcsh)
10 350 106 4 29 0 260 176 - R+ v1 0:00.03 ps -lx
Note the processes preceded by "->": their parent (344) got killed but
345 and 346 are still alive.
>Fix:
Dunno yet, will look into it.
>Audit-Trail:
>Unformatted: