Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!asuvax!ukma!kherron From: kherron@ms.uky.edu (Kenneth Herron) Newsgroups: comp.unix.questions Subject: Re: How can a child detect the death of its parent Message-ID: <1991Jun7.020043.2822@ms.uky.edu> Date: 7 Jun 91 02:00:43 GMT References: <298@wimpy.nms.gdc.portal.com> Distribution: na Organization: University Of Kentucky, Dept. of Math Sciences Lines: 12 bergquis@nms.gdc.portal.com (Brett Bergquist) writes: >I know how to detect the death of the child process using SIGCLD in the parent, >but how can I detect the death of the parent process in the child? You can check your PPID (parent's process ID) and see if it has changed to 1. PPID should never start out 1 from a child process. -- Kenneth Herron kherron@ms.uky.edu University of Kentucky +1 606 257 2975 Department of Mathematics "So this won't be a total loss, can you make it so guys get to throw their mothers-in-law in?" "Sure, why not?"