Date: Thu, 4 Mar 2004 22:06:31 +0700 From: Eugene Grosbein <eugen@www.svzserv.kemerovo.su> To: Dmitry Pryanishnikov <dmitry@atlantis.dp.ua> Cc: Eugene Grosbein <eugen@kuzbass.ru> Subject: Re: Linux emulation, rc.d and SIGHUP Message-ID: <20040304150631.GA71972@svzserv.kemerovo.su> In-Reply-To: <20040304164910.G22709@atlantis.atlantis.dp.ua> References: <20040304164910.G22709@atlantis.atlantis.dp.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 04, 2004 at 04:57:33PM +0200, Dmitry Pryanishnikov wrote: > > ktrace(1) show that it receives SIGHUP in the latter case. > > Is it a bug in the Linux emulation? If not, how can I avoid this SIGHUP? > > No, native applications (for example, shell scripts) will also receive SIGHUP > at the end of boot process if they don't daemonize themself (note that going > to background != daemon(3)). Fortunately, we have daemon(8) utility now. So > I've replaced '/etc/ppp/start &' with 'daemon /etc/ppp/start' everywhere to > get rid of this annoying SIGHUPs. Thank you very much! It works. Eugene
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040304150631.GA71972>