From: Brian Candler Date: 2011-04-08T22:38:27+09:00 Subject: Re: How do I trap Ctrl-C so it doesn't reach spawned threads? > 3. Anyone with a suggestion how to spawn processes not affected by a > SIGINT? Try replacing Thread.new { system("...") } with: fork { Process.setsid; exec("...") } This also has the advantages of: - not using threads - the pid of the child is the return value from fork Regards, Brian. -- Posted via http://www.ruby-forum.com/.