how process in background can kill itself after logout (BSD unix).

David S Hoelzer dhoelzer at csserv2.ic.sunysb.edu
Tue Mar 5 11:18:42 AEST 1991


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 at csserv1.ic.sunysb.edu   | If we shadows have offended, Think but this
paladin!dhoelzer at uunet.uu.net    | and all is mended, That you have but slum-
dhoelzer at church.ai.mit.edu       | bered here Whilst these shadows did appear.
-------------------------------------------------------------------------------



More information about the Comp.unix.programmer mailing list