From: Robert Klemme Date: 2010-01-06T01:56:57+09:00 Subject: [ruby-core:27424] Re: closing of the stderr pipe not detected - issue in 1.9.1? 2010/1/5 Tanaka Akira : > 2010/1/5 Robert Klemme : > >> I noticed a strange effect: the closing of stderr in the child process >> is not detected by the parent. �A demo run of the attached scripts >> looks like this: > > Use $stderr.reopen("/dev/null", "w") instead of > $stderr.close. Thank you for the hint! Why should I do this? Does Ruby somehow prevent the stream to be closed in order to be able to deliver error messages? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/