Some quick debugging shows that the print loop is reached, but that the hash is empty.
return 0 if $pid < 0; wasn't adjusted for the OS.
Windows doesn't support forking. When you call fork a thread is actually created. For those pseudo-processes, $$ is negative, so wait can return a negative number on success.
Use return 0 if $pid == -1; instead.
In reply to Re: Windows fork problem or my ignorance?
by ikegami
in thread Windows fork problem or my ignorance?
by romandas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |