in reply to Waitpid does not work as expected in Windows
Remember that fork creates threads that look like processes (rather than actual processes) on Windows.
use Win32::OLE('in');
It works fine when I remove this. Do you have any reason to believe it's thread-safe?
if ($check > 0)
The pseudo-processes created by fork on Windows have negative PIDs. That should be if ($check != -1).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Waitpid does not work as expected in Windows
by athanasia (Pilgrim) on Sep 29, 2008 at 11:33 UTC | |
by ikegami (Patriarch) on Sep 29, 2008 at 11:50 UTC | |
by athanasia (Pilgrim) on Sep 29, 2008 at 12:11 UTC |