From owner-freebsd-hackers Thu Jan 28 22:12:23 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA27672 for freebsd-hackers-outgoing; Thu, 28 Jan 1999 22:12:23 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA27661 for ; Thu, 28 Jan 1999 22:12:20 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from lot.gsoft.com.au (doconnor@lot.gsoft.com.au [203.38.152.106]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id QAA11769; Fri, 29 Jan 1999 16:41:51 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199901290324.UAA15562@usr07.primenet.com> Date: Fri, 29 Jan 1999 16:51:18 +1030 (CST) From: "Daniel O'Connor" To: Terry Lambert Subject: Re: Getting SIGHUP's when run from rc.d Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 29-Jan-99 Terry Lambert wrote: > > We have a experiment program which gets run out of /usr/local/etc/rc.d > > and it always get a SIGHUP when run by /etc/rc but not when run by hand. > > Any ideas why? > > Controlling tty goes away. > > man daemonize Well.. daemon(3) exists :) I had a look and that fixed it, thanks. --- 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-hackers" in the body of the message