From: nobu.nokada@... Date: 2003-04-09T14:38:05+09:00 Subject: Re: exit status from popen3 Hi, At Tue, 8 Apr 2003 03:20:31 +0900, Daniel Bretoi wrote: > Why is it spawning a grandchild process? To get rid of leave defunct processes. > I got rid of that and it > appears to work just as well. (changing the exit! to exit! $?>>8) Possibly, you ran another subprocess before popen3? $ ruby -I/tmp -ropen3 -e 'Open3.popen3("ls"); p $?' /tmp/open3.rb:35:in `popen3': undefined method `>>' for nil (NoMethodError) from /tmp/open3.rb:17:in `fork' from /tmp/open3.rb:36:in `popen3' from -e:1 256 # I'm not sure thread/method local variables should be also # process local. -- Nobu Nakada