From owner-freebsd-stable@FreeBSD.ORG Thu Mar 4 07:06:55 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 148E516A4CE for ; Thu, 4 Mar 2004 07:06:55 -0800 (PST) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 346F843D46 for ; Thu, 4 Mar 2004 07:06:54 -0800 (PST) (envelope-from eugen@www.svzserv.kemerovo.su) Received: from www.svzserv.kemerovo.su (eugen@localhost [127.0.0.1]) i24F6VD0072723; Thu, 4 Mar 2004 22:06:31 +0700 (KRAT) (envelope-from eugen@www.svzserv.kemerovo.su) Received: (from eugen@localhost) by www.svzserv.kemerovo.su (8.12.11/8.12.11/Submit) id i24F6VPl072721; Thu, 4 Mar 2004 22:06:31 +0700 (KRAT) (envelope-from eugen) Date: Thu, 4 Mar 2004 22:06:31 +0700 From: Eugene Grosbein To: Dmitry Pryanishnikov Message-ID: <20040304150631.GA71972@svzserv.kemerovo.su> References: <20040304164910.G22709@atlantis.atlantis.dp.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040304164910.G22709@atlantis.atlantis.dp.ua> User-Agent: Mutt/1.4i cc: stable@freebsd.org cc: Eugene Grosbein Subject: Re: Linux emulation, rc.d and SIGHUP X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2004 15:06:55 -0000 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