From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-05-20T01:05:43+09:00 Subject: Re: select strange behavier On Mon, 19 May 2003 10:35:56 +0200, Robert Klemme wrote: > > did you check that this works on windows, too? > I recently ran into a problem with pipes on windows. > Apparently they can't be used for multiplexing... No, the code is untested on windows. I only have a FreeBSD box. I am interested getting this code working on windows too. feedback about windows would be nice. Download these 2 files. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/metaeditor/experiments/cpp_embed_ruby/test/output/testall.rb http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/metaeditor/experiments/cpp_embed_ruby/test/output/b.rb If it works the output should be similar to this. > ruby testall.rb TestSandbox#test_fork pid=774 parent.leave done .. TestSandbox#test_system . TestSandbox#test_system_args . TestSandbox#test_system_status1 . TestSandbox#test_system_status2 . TestSandbox#test_system_status3 . Time: 1.188965 OK (6/6 tests 17 asserts) > [snip code] OK.. I have added your changes to the code, thanks :-) > And I'd try to put the "close" calls into "ensure" blocks where possible. OK. I will try it out at sometime :-) -- Simon Strandgaard