[Win32utils-devel] Fwd: win32-process gem: waiting for process

Daniel Berger djberg96 at gmail.com
Wed Sep 25 13:43:47 UTC 2013


Thanks.

I think I'm going to document that it might be better to use Process.spawn
over Process.create where practical.

Regards,

Dan


On Tue, Sep 24, 2013 at 7:56 PM, Heesob Park <phasis at gmail.com> wrote:

> Hi,
>
> 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
>
>
> Regards,
> Park Heesob
> _______________________________________________
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/win32utils-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20130925/3e27124f/attachment.html>


More information about the win32utils-devel mailing list