Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2002 23:52:35 -0800 (PST)
From:      Ali Imran <ai32@drexel.edu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/34195: setting the action for SIGCHLD to SIG_IGN will create zombies
Message-ID:  <200201230752.g0N7qZ374824@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         34195
>Category:       misc
>Synopsis:       setting the action for SIGCHLD to SIG_IGN will create zombies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 23 00:00:02 PST 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201230752.g0N7qZ374824>