From: "ara.t.howard" Date: 2007-12-08T10:26:46+09:00 Subject: Re: at_exit() Inherited Across fork() On Dec 7, 2007, at 1:33 PM, James Gray wrote: > I'm not saying this is wrong, just clarifying what I am seeing. Is > it intended that at_exit() handlers are inherited by a fork()ed > process? For example: > > at_exit { puts "Doing something important for #{Process.pid}." } > fork > > James Edward Gray II > it's expected, and easy to get around if you want: fork do at_exit{ exit! } end you just have to do it right up front in order to dis-own the handlers from the parent - i do this is slave.rb or open4.rb - can't recall which offhand. cheers. a @ http://codeforpeople.com/ -- it is not enough to be compassionate. you must act. h.h. the 14th dalai lama