Date: Thu, 4 Mar 2004 16:57:33 +0200 (EET) From: Dmitry Pryanishnikov <dmitry@atlantis.dp.ua> To: stable@freebsd.org Cc: Eugene Grosbein <eugen@kuzbass.ru> Subject: Re: Linux emulation, rc.d and SIGHUP Message-ID: <20040304164910.G22709@atlantis.atlantis.dp.ua>
next in thread | raw e-mail | index | archive | help
Hello! > From: Eugene Grosbein <eugen@kuzbass.ru> > > I've Linux multithreading daemon running under FreeBSD 4.9-STABLE > (cvsup'd today). Being started in multiuser, it goes backgroup and runs OK. > Being started at boot time from rc.d script, it starts and quickly > shuts down. > > 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. Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040304164910.G22709>