From: Francis Cianfrocca Date: 2006-06-05T10:02:30+09:00 Subject: Re: Please kill the children as you're leaving ------=_Part_3124_10025003.1149469333111 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline >>>Non with irb, but you may be able to make the parent a session leader, which might cause SIGHUP to be delivered to its children when it exits. If a process becomes a process group leader (setpgid(0,0) in the child process after the fork and before it calls exec), then its parent can kill it and all of its subprocesses by sending a signal to the negative of its pid. Not sure that helps here though. The best idea I've heard so far is for the child processes to periodically write a pipe that terminates in the parent. Then if the parent goes, the children will get killed by SIGPIPE. This stuff is pretty hard to get right, have to admit. ------=_Part_3124_10025003.1149469333111--