Path: utzoo!utgpu!jarvis.csri.toronto.edu!torsqnt!tmsoft!list-injector From: cks@ziebmef.mef.org (Chris Siebenmann) Newsgroups: can.usrgroup Subject: Re: Help with background processes Message-ID: <8909120312.AA11333@ziebmef.mef.org> Date: 12 Sep 89 07:12:09 GMT Reply-To: Chris Siebenmann Distribution: ont Lines: 11 In-reply-to: chk's message of 08 Sep 89 20:21:03 +0000. <2499@dciem.dciem.dnd.ca> chk writes: | I need a fix. I need a sure-fire way for a process to detect that the person | who spawned it is no longer logged on on that terminal. If you are starting these daemons from your login shell, my favorite method is to check for the parent process ID going to 1. This is infallible, since it's done by the kernel only when the parent dies. If the daemons are started at other times, I suspect they'll just have to be hacked to watch /etc/utmp. - cks