Date: Sun, 28 Jul 96 11:22:40 GMT From: gordon@galisant.demon.co.uk (Gordon Beck) To: freebsd-questions@FreeBSD.org Subject: killing child processes Message-ID: <838578160snx@galisant.demon.co.uk> References: <199607251350.NAA00377@CoDe.CoDe.hu> <31FA4AE3.41C67EA6@tir.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I have a monitor daemon which forks and runs an application. If the application dies then the daemon get to know about it. However, if the daemon dies or is killed, then the child continues to run. I had expected the child to get a SIGHUP, which it is not blocking. However, I think that SIGHUP is only generated if the daemon is a process group leader and had a control terminal whose TGRP matched the process group (?). If a daemon process issues setpgrp then it can on longer acquire a control terminal(?), which is cache 22. Anyone have clues/pointers/source code for a general or specific solution to this problem gordon Gordon Beck | gordon@galisant.demon.co.uk | | | Durham UK | |The Questing Beast
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?838578160snx>