From: Han Holl Date: 2007-10-06T05:45:19+09:00 Subject: Re: Signal handling strangeness (Linux) On 10/5/07, Paul Brannan wrote: > > I see no way to close the fd without waiting on the child process, so if > you want this behavior, don't use popen (you can use Open3.popen3 > instead). > The following works: trap('TERM') do exit! end so it would seem that 'waitpid() is closely related to the atexit() functions. The following would be nice to have: trap('TERM') do kill child_process end This woulr let me do at_exit processing as well. But I haven't found out how to get the pid of the child with IO.popen. Cheers Han Holl