From owner-freebsd-hackers Wed Jul 21 9:45:20 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 5291B154D7 for ; Wed, 21 Jul 1999 09:45:12 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.2) with ESMTP id SAA25903; Wed, 21 Jul 1999 18:42:46 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Sheldon Hearn Cc: freebsd-hackers@freebsd.org Subject: Re: cvs commit: src/usr.sbin/inetd inetd.c In-reply-to: Your message of "Wed, 21 Jul 1999 18:33:21 +0200." <23428.932574801@axl.noc.iafrica.com> Date: Wed, 21 Jul 1999 18:42:45 +0200 Message-ID: <25901.932575365@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The point was who the heck sends the SIGHUP and why ? Poul-Henning In message <23428.932574801@axl.noc.iafrica.com>, Sheldon Hearn writes: > >[Hi-jacked from cvs-committers and cvs-all] > >On Wed, 21 Jul 1999 18:15:09 +0200, Poul-Henning Kamp wrote: > >> There is another one you may want to look at, I have not figured it >> out yet: >> >> I try to start a ntpd from /etc/rc.local this way: >> >> nohup /usr/local/bin/ntpd -d -d > /usr/ntp/x.ntpd 2>&1 & >> >>and it invariably ends up dead in a few seconds with: > >> Jul 17 12:26:39 bogon ntpd[248]: ntpd exiting on signal 1 > >Can nohup really prevent processes from trapping SIGHUP? I thought it >just set the SIGUP handler to discard and hoped for the best. > >Xntpd in the base system explicitly requests its graceful termination >function, called finish(), be loaded as the SIGHUP handler. > >What is it you'd like? > > 1) nohup should prevent processes from trapping SIGHUP. > 2) xntpd should reconfigure on SIGHUP. > 3) xntpd is getting a SIGHUP and you're not sure where from. > 4) xntpd is different from the port's ntpd in some way that > should change. > >Ciao, >Sheldon. > -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message