NetBSD Problem Report #1437

From gnats  Tue Sep  5 12:45:00 1995
Received: from localhost.simplex.nl (PPP46-200.Simplex.NL [193.78.46.200]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id MAA01359 for <gnats-bugs@gnats.netbsd.org>; Tue, 5 Sep 1995 12:44:46 -0400
Message-Id: <199509051644.SAA00392@localhost.simplex.nl>
Date: Tue, 5 Sep 1995 18:44:34 +0200
From: onno@simplex.nl
Reply-To: onno@simplex.nl
To: gnats-bugs@gnats.netbsd.org
Subject: process with a pty still lives after the parent got killed
X-Send-Pr-Version: 3.95

>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
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 05 12:50:00 +0000 1995
>Closed-Date:    Sun Feb 18 12:55:24 +0000 1996
>Last-Modified:  Sun Feb 18 12:56:44 +0000 1996
>Originator:     & van der Linden
>Release:        Sep 2nd
>Organization:

>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.

>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->analyzed
State-Changed-By: jtc
State-Changed-When: Tue Sep 26 02:23:21 1995
State-Changed-Why:
I have been not able to reproduce this, but I use bash as my login shell.
Perhaps this is tcsh related?

State-Changed-From-To: analyzed->analyzed
State-Changed-By: jtc
State-Changed-When: Tue Sep 26 02:30:45 1995
State-Changed-Why:
I not been able to reproduce this this with both /bin/sh and /bin/csh as 
my shell either.

State-Changed-From-To: analyzed->closed 
State-Changed-By: mycroft 
State-Changed-When: Sun Feb 18 07:55:24 EST 1996 
State-Changed-Why:  
Unable to reproduce this with any shell, and no further information supplied. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.