in reply to waitpid and Windows
... but doesn't perform as expected in the Windows world.
That's a pretty poor description of the problem. What are you expecting and how does what you are seeing differ from that?
The non-blocking form of waitpid seems to work fine on my system:
use POSIX qw[ :sys_wait_h ];; $pid = open O, '| perl.exe -e"sleep 10; exit(123)"' or die $!;; print waitpid( $pid, &WNOHANG ) while sleep 1;; 0 0 0 0 0 0 0 4360 -1 -1 -1 Terminating on signal SIGINT(2)
So how is it "not performing as expected" for you?
Also, showing the open being used woudl be a good idea as that can influence things.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: waitpid and Windows
by jeffthewookiee (Sexton) on Jun 02, 2007 at 11:59 UTC | |
by syphilis (Archbishop) on Jun 03, 2007 at 07:26 UTC | |
by BrowserUk (Patriarch) on Jun 02, 2007 at 16:48 UTC |