From owner-freebsd-bugs Fri Feb 22 6: 0:12 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 3A14837B402 for ; Fri, 22 Feb 2002 06:00:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1ME06d86504; Fri, 22 Feb 2002 06:00:06 -0800 (PST) (envelope-from gnats) Date: Fri, 22 Feb 2002 06:00:06 -0800 (PST) Message-Id: <200202221400.g1ME06d86504@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Daniel O'Connor" Subject: Re: i386/35182: APMD does not set close on exec for /dev/apm* Reply-To: "Daniel O'Connor" 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 The following reply was made to PR i386/35182; it has been noted by GNATS. From: "Daniel O'Connor" To: freebsd-gnats-submit@FreeBSD.org, darius@dons.net.au Cc: Subject: Re: i386/35182: APMD does not set close on exec for /dev/apm* Date: Sat, 23 Feb 2002 00:21:49 +1030 Also needs.. Index: apmd.c =================================================================== RCS file: /usr/CVS-Repository/src/usr.sbin/apmd/apmd.c,v retrieving revision 1.3.2.1 diff -u -r1.3.2.1 apmd.c --- apmd.c 13 Aug 2001 17:30:30 -0000 1.3.2.1 +++ apmd.c 22 Feb 2002 13:43:37 -0000 @@ -119,6 +119,9 @@ goto out; case 0: /* child process */ + signal(SIGHUP, SIG_DFL); + signal(SIGCHLD, SIG_DFL); + signal(SIGTERM, SIG_DFL); execl(_PATH_BSHELL, "sh", "-c", p->line, (char *)NULL); _exit(127); default: To allow children to be signalled as they expect. --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message