[Win32utils-devel] Fwd: win32-process gem: waiting for process
djberg96 at gmail.com
Wed Sep 25 13:43:47 UTC 2013
I think I'm going to document that it might be better to use Process.spawn
over Process.create where practical.
On Tue, Sep 24, 2013 at 7:56 PM, Heesob Park <phasis at gmail.com> wrote:
> 2013/9/25 Daniel Berger <djberg96 at gmail.com>:
> > Thanks.
> > Could he use sleep 0.1 while Process.get_exitcode(info.process_id) ?
> > I'm also wondering in general if the builtin Process.spawn + Process.wait
> > works. I haven't tried it.
> He could use sleep 0.1 while !Process.get_exitcode(info.process_id)
> The built-in Process.wait works
> Process.wait(Process.spawn('ruby -e "sleep 5;exit(3)"'))
> p $?.exitstatus
> Park Heesob
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the win32utils-devel