Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site haring.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!wjh12!talcott!harvard!seismo!mcvax!turing!haring!jim From: jim@haring.UUCP Newsgroups: net.bugs.4bsd,net.unix-wizards Subject: Re: rlogind and background processes Message-ID: <358@haring.UUCP> Date: Fri, 16-Nov-84 13:06:39 EST Article-I.D.: haring.358 Posted: Fri Nov 16 13:06:39 1984 Date-Received: Sat, 17-Nov-84 05:51:22 EST References: <2890@allegra.UUCP> Organization: CWI, Amsterdam Lines: 26 Xref: genrad net.bugs.4bsd:1233 net.unix-wizards:10692 > - in login.c, add a signal(SIGHUP,SIG_DFL) before the user's > login shell is invoked. This is necessary because getty's and > login's that are invoked from daemons (such as rlogind and chserver) > apparently have SIGHUP ignored. > Mark Plotnick > Society for the Prevention of Cruelty to Processes This interested me, as I could find no justification for it. However, things became clearer when I realised that we are running two different versions of /etc/inetd (the Internet super-server) on our systems, an old one from SUN and a new one from Berkeley. Daemons spawned by the new one do not have SIGHUP ignored, but the old ones do. This is because the new inetd has a SIGHUP catch routine, whereas the old one doesn't and just inherits it from its parent (/etc/init). This lead me to the discovery that anything spawned from /etc/rc has SIGHUP ignored, due to the routine 'shutdown' in /etc/init being called right at the beginning, which sets SIGHUP. Now, the question is, is this intentional? If it is, then the processes spawned by /etc/rc should take note of it, if it isn't, then /etc/init should be fixed. Jim McKie Centrum voor Wiskunde en Informatica, Amsterdam mcvax!jim