Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2002 06:00:06 -0800 (PST)
From:      "Daniel O'Connor" <darius@dons.net.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: i386/35182: APMD does not set close on exec for /dev/apm*
Message-ID:  <200202221400.g1ME06d86504@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/35182; it has been noted by GNATS.

From: "Daniel O'Connor" <darius@dons.net.au>
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




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