From: Daniel Berger Date: 2007-09-22T20:31:33+09:00 Subject: Re: CplusRuby - Gluing C and Ruby Nobuyoshi Nakada wrote: > Hi, > > At Sat, 22 Sep 2007 06:54:13 +0900, > Daniel Berger wrote in [ruby-talk:270261]: >> + if RUBY_PLATFORM.match('mswin') >> + raise if status != 0 >> + else >> + raise if status.exitstatus != 0 >> + end > > I'm curious why win32/process doesn't return Process::Status. We had to reimplement waitpid and waitpid2 because of our custom fork implementation. But, we weren't sure how to set $? manually to a Process::Status object in pure Ruby. Do you have any suggestions? Thanks, Dan