Path: utzoo!mnetor!uunet!husc6!mailrus!nrl-cmf!ames!eos!aurora!labrea!decwrl!pyramid!prls!philabs!micomvax!zap!iros1!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP (der Mouse) Newsgroups: comp.unix.questions Subject: Re: killing daemons Message-ID: <992@mcgill-vision.UUCP> Date: 13 Mar 88 03:13:22 GMT References: <20917@bbn.COM> <10096@ulysses.homer.nj.att.com> Organization: McGill University, Montreal Lines: 23 In article <10096@ulysses.homer.nj.att.com>, cjc@ulysses.homer.nj.att.com (Chris Calabrese[rs]) writes: > In article <20917@bbn.COM>, mesard@bbn.com (Wayne Mesard) writes: >> During execution [a daemon] occasionally checks to see if the parent >> is still around, and commits suicide if it isn't: > If the parent of this deamon is the shell, More likely, its parent is now init, but its parent used to be the shell. That is, when it was started, it forked and exited to put itself into the background. > it should receive the hangup signal upon the termination of the shell > through logging out. Huh? As far as I can tell, my processes never get HUPs when the shell exits. Certainly not if they're running. (If they are stopped, the shell warns, but if you insist, it will go ahead and exit. It then does send some signal to the stopped jobs, but I don't recall what signal. But none of that happens to running jobs.) der Mouse uucp: mouse@mcgill-vision.uucp arpa: mouse@larry.mcrcim.mcgill.edu