From nobody@FreeBSD.org  Tue Jan 22 23:52:36 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 8EE9D37B405
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Jan 2002 23:52:35 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g0N7qZ374824;
	Tue, 22 Jan 2002 23:52:35 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200201230752.g0N7qZ374824@freefall.freebsd.org>
Date: Tue, 22 Jan 2002 23:52:35 -0800 (PST)
From: Ali Imran <ai32@drexel.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: setting the action for SIGCHLD to SIG_IGN will create zombies
X-Send-Pr-Version: www-1.0

>Number:         34195
>Category:       kern
>Synopsis:       setting the action for SIGCHLD to SIG_IGN will create zombies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    iedowse
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 23 00:00:02 PST 2002
>Closed-Date:    Sun Dec 04 06:08:50 GMT 2005
>Last-Modified:  Sun Dec 04 06:08:50 GMT 2005
>Originator:     Ali Imran
>Release:        4.4-STABLE
>Organization:
>Environment:
FreeBSD XXX 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #1: Wed Dec 26 19:38:52 EST 2001     root@XXX:/usr/src/sys/compile/REDDOG  i386
>Description:
Single UNIX Specification Version 2 states that:
..
If the action for the SIGCHLD signal is set
to SIG_IGN, child processes of the calling
processes will not be transformed into zombie
processes when they terminate. If the calling
..
However FreeBSD creates zombies.

I don't know if this is "traditional" BSD 
beahvior and considered a "feature" and not
a bug.

>How-To-Repeat:
1.  Create a sample program that
    a.  sets action for SIGCHLD to SIG_IGN (signal(SIGCHLD, SIG_IGN))
    b.  fork()'s repeatedly
    c.  have the children exit()

2.  Sit and watch PS as zombies are created

I would submit a sample program but the "Note" says not to.
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Maxim Konovalov <maxim@macomnet.ru>
To: Ali Imran <ai32@drexel.edu>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/34195: setting the action for SIGCHLD to SIG_IGN will create
 zombies
Date: Wed, 23 Jan 2002 11:42:11 +0300 (MSK)

 Hello,
 
 [...]
 > >Description:
 > Single UNIX Specification Version 2 states that:
 > ..
 > If the action for the SIGCHLD signal is set
 > to SIG_IGN, child processes of the calling
 > processes will not be transformed into zombie
 > processes when they terminate. If the calling
 > ..
 > However FreeBSD creates zombies.
 >
 > I don't know if this is "traditional" BSD
 > beahvior and considered a "feature" and not
 > a bug.
 
 Yes, it is a traditional BSD way.
 
 JFYI, there was an attempt to commit the SIGCHLD SIG_IGN signal
 handlin code, it was MFCed to -stable and then backed out from -stable
 and -current. Please take a look at
 
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/kern_exit.c
 
 for more details.
 
 -- 
 Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer
 phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru
 
 
Responsible-Changed-From-To: freebsd-bugs->iedowse 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Jan 29 07:10:24 PST 2002 
Responsible-Changed-Why:  
Ian, I think you backed out the SIGCHLD change that would have 
resolved this PR.  Can I leave this for you as a reminder, or 
is someone else actively working on the "fault on nofault entry" 
panics in exit1()? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34195 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Jul 22 07:13:58 GMT 2004 
State-Changed-Why:  
Was this issue ever resolved satisfactorily? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34195 
State-Changed-From-To: feedback->suspended 
State-Changed-By: linimon 
State-Changed-When: Sun Dec 4 02:42:40 GMT 2005 
State-Changed-Why:  
Feedback timeout from all concerned.  Mark as 'suspended' because it 
never sounds like this problem got resolved. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34195 

From: Ian Dowse <iedowse@iedowse.com>
To: Mark Linimon <linimon@FreeBSD.org>
Cc: ai32@drexel.edu, FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/34195: setting the action for SIGCHLD to SIG_IGN will create zombies 
Date: Sun, 04 Dec 2005 05:58:14 +0000

 In message <200512040246.jB42kQGb040879@freefall.freebsd.org>, Mark Linimon wri
 tes:
 >Synopsis: setting the action for SIGCHLD to SIG_IGN will create zombies
 >
 >State-Changed-From-To: feedback->suspended
 >State-Changed-By: linimon
 >State-Changed-When: Sun Dec 4 02:42:40 GMT 2005
 >State-Changed-Why: 
 >Feedback timeout from all concerned.  Mark as 'suspended' because it
 >never sounds like this problem got resolved.
 
 I think it was actually fixed back in 5-CURRENT so the fix should
 be in 5.x, 6.x and -CURRENT now. Only RELENG_4 didn't have the fix
 applied, which is probably no longer a big deal.
 
 Ian
State-Changed-From-To: suspended->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Dec 4 06:08:29 GMT 2005 
State-Changed-Why:  
Assignee agrees that this should be closed instead. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34195 
>Unformatted:
