From owner-freebsd-bugs Tue Jun 13 9:50: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 7622137C04D for ; Tue, 13 Jun 2000 09:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id JAA47911; Tue, 13 Jun 2000 09:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id B509537BF81; Tue, 13 Jun 2000 09:46:47 -0700 (PDT) Message-Id: <20000613164647.B509537BF81@hub.freebsd.org> Date: Tue, 13 Jun 2000 09:46:47 -0700 (PDT) From: shh@ricochet.net To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/19247: uthread_sigaction.c does not do anything wrt SA_NOCLDWAIT Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19247 >Category: kern >Synopsis: uthread_sigaction.c does not do anything wrt SA_NOCLDWAIT >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 13 09:50:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Shiv Haris >Release: 3.2, 4.0 >Organization: none >Environment: >Description: THe man page (and also the kernel) do honor SA_NOCLDWAIT for sigaction. However the threads library prevents letting this be used as it silently bypasses this SIGCHLD processing. Here is the man page snipet: SA_NOCLDWAIT If this bit is set when calling sigaction() for the SIGCHLD signal, the system will not create zombie processes when children of the calling process ex- it. If the calling process subsequently issues a wait(2) (or equivalent), it blocks until all of the calling process's child processes terminate, and then returns a value of -1 with errno set to ECHILD. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message