From: Matt Lawrence Date: 2010-12-19T03:47:02+09:00 Subject: Re: Independent processes On Sun, 19 Dec 2010, James Edward Gray II wrote: > On Dec 18, 2010, at 12:34 PM, Tasos Laskos wrote: > >> *Lightbulb* >> The children are listening on stdin too so they probably catch the >> Ctrl+C interrupt and die as well. > > That's correct. By default they share STDIN. > >> But I don't want that either...is there a way to separate them >> completely or will I have to settle? > > Sure. You could redirect STDIN (plus STDOUT and STDERR, if desired) in the children: > > $stdin.reopen("/dev/null", "r") > > or you could change the signal handling in the children: > > trap("INT", "IGNORE") > > I hope that helps. Or maybe this is what you want: http://www.ruby-forum.com/topic/185221 -- Matt It's not what I know that counts. It's what I can remember in time to use.