[Win32utils-devel] Fwd: [win32-process] added Process.get_exitcode method (#14)

Daniel Berger djberg96 at gmail.com
Wed Sep 4 21:09:33 UTC 2013


---------- Forwarded message ----------
From: mthiede <notifications at github.com>
Date: Wed, Sep 4, 2013 at 3:05 PM
Subject: [win32-process] added Process.get_exitcode method (#14)
To: djberg96/win32-process <win32-process at noreply.github.com>

Hi Daniel,

I've added the get_exitcode method mainly because I needed a way to tell if
my process started with Process.create is still running or not. The usual
way of calling Process.wait or Process.waitpid fails as soon as one
connectes stdin, stdout or stderr with pipes or files. It seems that wait
doesn't recognize the process as a child process (ECHILD). Not sure how
they try to figure this out internally...

You can merge this Pull Request by running

  git pull https://github.com/mthiede/win32-process ffi

Or view, comment on, or merge it at:

Commit Summary

   - added Process.get_exitcode method

File Changes

   - *M* lib/win32/process.rb<https://github.com/djberg96/win32-process/pull/14/files#diff-0>(30)
   - *M* lib/win32/process/constants.rb<https://github.com/djberg96/win32-process/pull/14/files#diff-1>(5)
   - *M* lib/win32/process/functions.rb<https://github.com/djberg96/win32-process/pull/14/files#diff-2>(1)
   - *M* test/test_win32_process.rb<https://github.com/djberg96/win32-process/pull/14/files#diff-3>(32)

Patch Links:

   - https://github.com/djberg96/win32-process/pull/14.patch
   - https://github.com/djberg96/win32-process/pull/14.diff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20130904/4a2d82fc/attachment.html>

More information about the win32utils-devel mailing list