Subject: kern/17388: the kernel will kill orphaned traced processes without logging
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 06/25/2002 13:39:34
>Number: 17388
>Category: kern
>Synopsis: the kernel will kill orphaned traced processes without logging
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 25 11:54:06 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Greg A. Woods
>Release: NetBSD-current 2002/06/23
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD
>Description:
the kernel will kill orphaned traced processes without logging
that it has done so
>How-To-Repeat:
>Fix:
use killproc() instead of psignal(p, SIGKILL)
Index: kern_exit.c
===================================================================
RCS file: /cvs/master/m-NetBSD/main/syssrc/sys/kern/kern_exit.c,v
retrieving revision 1.93
diff -c -c -r1.93 kern_exit.c
*** kern_exit.c 17 Mar 2002 23:41:30 -0000 1.93
--- kern_exit.c 25 Jun 2002 17:36:45 -0000
***************
*** 247,253 ****
*/
if (q->p_flag & P_TRACED) {
q->p_flag &= ~(P_TRACED|P_WAITED|P_FSTRACE);
! psignal(q, SIGKILL);
}
}
--- 247,253 ----
*/
if (q->p_flag & P_TRACED) {
q->p_flag &= ~(P_TRACED|P_WAITED|P_FSTRACE);
! killproc(q, "orphaned, traced, process.");
}
}
>Release-Note:
>Audit-Trail:
>Unformatted: