From owner-freebsd-bugs Wed Jan 23 0: 0:23 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E622737B400 for ; Wed, 23 Jan 2002 00:00:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0N802f76051; Wed, 23 Jan 2002 00:00:02 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8EE9D37B405 for ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/34195: setting the action for SIGCHLD to SIG_IGN will create zombies Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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