From: Robert Klemme Date: 2006-06-04T22:31:44+09:00 Subject: Re: Please kill the children as you're leaving 2006/6/4, Ohad Lutzky : > Allow me to clarify the problem. Say I use irb as follows: > > fork do > { } while true > end > => SOME_PID > > Now, if I kill (externally) the parent irb, then SOME_PID dies along > with it. However, if instead of doing that, I > > raise Exception > > Then the child lives, reparanted to init. How do I avoid that? You can either have a beginn rescue end block on your top level or you use at_exit to deal with the situation, i.e. kill children: http://www.ruby-doc.org/core/classes/Kernel.html#M002953 Kind regards robert -- Have a look: http://www.flickr.com/photos/fussel-foto/