in reply to win32 nonblocking waitpid()

NEVER MIND THE ABOVE! I managed to get ahold of VC++ and work out the patch.

Of course, WNOHANG isn't defined under win32, so as a workaround for that I just
#ifndef WNOHANG #define WNOHANG 1 #endif
near the top of win32.c
Of course you must also add the check(s) (there's a conditional compilation there) for the return val WAIT_TIMEOUT now, in addition to the check for WAIT_FAILED...

Replies are listed 'Best First'.
RE: RE: win32 nonblocking waitpid()
by tye (Sage) on Jul 29, 2000 at 00:27 UTC

    Ah, but you need to put it in a *.h file that will be included by the Posix module so that it will know that your vendor now does define WNOWAIT.

    (short pause while I double check something before opening my big mouth -- something I almost never do)

    Posix.pm #include's perl.h which #include's config.h so the definition of WNOHANG needs to be added to each of the win32/config_H.* files except win32/config_h.PL.

    Thanks a ton for doing this!