Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!sbcs!csserv2.ic.sunysb.edu!dhoelzer From: dhoelzer@csserv2.ic.sunysb.edu (David S Hoelzer) Newsgroups: comp.unix.programmer Subject: Re: how process in background can kill itself after logout (BSD unix). Message-ID: <1991Mar5.011842.27618@sbcs.sunysb.edu> Date: 5 Mar 91 01:18:42 GMT References: <1991Jan29.012702.7265@nntp-server.caltech.edu> <8875@star.cs.vu.nl> Sender: usenet@sbcs.sunysb.edu (Usenet poster) Organization: State University of New York at Stony Brook Lines: 13 Another easy way to have a bg process commit suicide is this:(I havent got any code handy, so a description will have to do) get the tty from which it was run. Every so often, spawn a process to check the tty to see if it is still owned by it's parent. If not, out it goes.. ------------------------------------------------------------------------------- dhoelzer@csserv1.ic.sunysb.edu | If we shadows have offended, Think but this paladin!dhoelzer@uunet.uu.net | and all is mended, That you have but slum- dhoelzer@church.ai.mit.edu | bered here Whilst these shadows did appear. -------------------------------------------------------------------------------