From owner-freebsd-current Wed Jul 2 23:01:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA21948 for current-outgoing; Wed, 2 Jul 1997 23:01:38 -0700 (PDT) Received: from bunyip.cc.uq.edu.au (daemon@bunyip.cc.uq.edu.au [130.102.2.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA21942 for ; Wed, 2 Jul 1997 23:01:28 -0700 (PDT) Received: (from daemon@localhost) by bunyip.cc.uq.edu.au (8.8.5/8.8.6) id QAA02155 for freebsd-current@freebsd.org; Thu, 3 Jul 1997 16:01:08 +1000 Received: from localhost.dtir.qld.gov.au by ogre.dtir.qld.gov.au (8.7.5/DEVETIR-E0.3a) with SMTP id QAA18716 for ; Thu, 3 Jul 1997 16:00:03 +1000 (EST) Message-Id: <199707030600.QAA18716@ogre.dtir.qld.gov.au> To: freebsd-current@freebsd.org Subject: Re: ppp & HUP. References: <33BB1473.33590565@whistle.com> In-Reply-To: <33BB1473.33590565@whistle.com> from Julian Elischer at "Thu, 03 Jul 1997 02:54:43 +0000" Date: Thu, 03 Jul 1997 16:00:02 +1000 From: Stephen McKay Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [Somehow I missed the start of this. Strange. Am I losing mail?] On Thursday, 3rd July 1997, Julian Elischer wrote: >=?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= wrote: >> >> On Wed, 2 Jul 1997, Brian Somers wrote: >> >> > > > reboot(8) will send SIGTERMs to the processes, but not SIGHUPs. >> > >> > death() in init.c :( >> >> I start thinking that sending HUP from init is a bug because: >> 1) It increase disk activity just before shutdown since all daemons >> re-read their configs. >> 2) It cause redials for redial-able software as uucp (and ppp some time >> ago). >> >> If nobody will explain why this HUP is neded (hanging shells perfectly >> killed by SIGKILL), I'll remove HUP sending from init. >> >I have processes that close down assuming they have > 5 or 6 seconds to do so when they receive HUP. >it's traditional. I don't like changing such traditions.. Well, back in the good old days (4.2 BSD), it was SIGTERM (from shutdown), then SIGKILL (from halt or reboot or init). If init ever wanted you dead, it just used SIGKILL. Your tradition must be a young tradition. :-) >From my earliest UNIX days, it has been SIGTERM == "Please exit soon" and SIGKILL == "Die now!". SIGHUP was for "Oops, you have no terminal now", and usually there was no point in carrying on. But that was before the days of POSIX, and their version of job control. If they've stuffed that up, someone should set me straight. It seems to me that the real problem here is that a lot of daemons now abuse all sorts of signals for a bunch of naff things. If anything, we should be removing all that crap. There are other, better IPC mechanisms. On the other hand, I can't see any reason for init to send SIGHUP, so I won't object if that is removed. Stephen.