[pushing our IM discussion to the list]
Magnus, the SIGCHLD implementation snippet I sent over to you works
perfectly (possible thread unsafe issues in logging aside), but it looks
like I messed up the (obviously untested) win32_waitpid code after all.
You'll need to go to win32_RemoveChild, and change the lines:
win32_childPIDArray[win32_numChildren] =
win32_childPIDArray[i];
win32_childHNDArray[win32_numChildren] =
win32_childHNDArray[i];
to:
win32_childPIDArray[i] =
win32_childPIDArray[win32_numChildren];
win32_childHNDArray[i] =
win32_childHNDArray[win32_numChildren];
(Pretty obvious now that we can actually run this code. Yay! :-)
Will I leave you to format up a new patch and include this change + the
SIGCHLD code?
Cheers,
Claudio
---
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
<a
href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
ailpolicy.html</a>