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).
In reply to Re: Waitpid does not work as expected in Windows
by ikegami
in thread Waitpid does not work as expected in Windows
by athanasia
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |