From owner-freebsd-hackers Tue Dec 15 13:42:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA29984 for freebsd-hackers-outgoing; Tue, 15 Dec 1998 13:42:15 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA29968 for ; Tue, 15 Dec 1998 13:42:07 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id PAA46440; Tue, 15 Dec 1998 15:41:47 -0600 (CST) Date: Tue, 15 Dec 1998 15:41:46 -0600 From: Dan Nelson To: Matthew Dillon , David Wolfskill Cc: ambrisko@whistle.com, hackers@FreeBSD.ORG Subject: Re: bin/8183 Message-ID: <19981215154146.A46153@emsphone.com> References: <199812151945.LAA09463@pau-amma.whistle.com> <199812151950.LAA59883@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.3i In-Reply-To: <199812151950.LAA59883@apollo.backplane.com>; from "Matthew Dillon" on Tue Dec 15 11:50:37 GMT 1998 X-OS: FreeBSD 3.0-CURRENT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Dec 15), Matthew Dillon said: > I wonder... does exec() clear blocked signals? I assumed it did. > Anyone know for sure? It does not. manpage for signal(3): When a process which has installed signal handlers forks, the child process inherits the signals. All caught signals may be reset to their default action by a call to the execve(2) function; ignored signals remain ignored. Note that this affects any background program run via "nohup" also. If you run "nohup program &", don't expect to be able to kill -HUP it later. This was discussed a little on the mysql mailinglist, when FreeBSD people noticed that they couldn't kill the server (mysql uses -QUIT to exit, and nohup blocks HUP and QUIT). -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message