From owner-freebsd-current Tue Mar 25 15:05:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA18230 for current-outgoing; Tue, 25 Mar 1997 15:05:05 -0800 (PST) Received: from isbalham.ist.co.uk (isbalham.ist.co.uk [192.31.26.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA18203 for ; Tue, 25 Mar 1997 15:05:00 -0800 (PST) Received: from gid.co.uk (uucp@localhost) by isbalham.ist.co.uk (8.8.4/8.8.4) with UUCP id XAA17980; Tue, 25 Mar 1997 23:01:08 GMT Date: Tue, 25 Mar 1997 23:00:54 GMT Received: from [194.32.164.2] by seagoon.gid.co.uk; Tue, 25 Mar 1997 23:00:54 GMT X-Sender: rb@194.32.164.1 Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Bruce Evans From: Bob Bishop Subject: Re: 2.2R (src 2.2 211): == dialing Cc: freebsd-current@FreeBSD.org, joerg_wunsch@uriah.heep.sax.de, terry@lambert.org Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk At 10:02 pm -0000 25/3/97, Bruce Evans wrote: >>>This differs from when the system is shut down using reboot(8). reboot >>>shuts things down by broadcasting signals of increasing severity >>>{ SIGTERM, SIGKILL }. I don't know why init broadcasts SIGHUP... >> >>That I can tell you: interactive shells don't respond to SIGTERM. OTOH, >>init shouldn't send SIGHUP to daemons (ie sessions with no controlling tty) >>because they mostly take HUP to mean "reread your config". > >Init can't know enough about program (mis)behaviour to do this. If that is true, Terry is right and something is broken. >The slattach daemon has a controlling tty... Only until it calls daemon() immediately after cracking its args. >... but shouldn't be sent a SIGHUP, since that >tells it to redial. Which is (close to) where we came in. >I think ignoring SIGTERM is braindamaged. AFAIK, interactive shells have always done so (since V7 at least). Bear in mind that SIGHUP originated historically as a (hardware) indication that carrier had dropped because the caller had Hung UP, whereas TERM has always been a pure software signal. -- Bob Bishop (0118) 977 4017 international code +44 118 rb@gid.co.uk fax (0118) 989 4254 between 0800 and 1800 UK