ara.t.howard wrote: > On Jun 2, 2008, at 8:59 AM, Mrio Lopes wrote: > >> in the foreground of the main process it seems that the application >> Start main process >> Mrio > trap( :INT ){ warn "can't do that" } > > fork { exec command } > Process.wait > > if the child installs it's own signal handler you are hosed. Tried that with the following example just for testing.. fork { exec "echo 'start'; sleep 20; echo 'end'" } And if I issue a SIGINT the warning gets printed but the 'end' never gets printed meaning that the process ended abruptly. That's what I'm trying to avoid :-/ Mário -- Posted via http://www.ruby-forum.com/.