|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
wait is broken on win32?by xiaoyafeng (Hermit) |
| on Apr 26, 2009 at 03:42 UTC ( #760086=perlquestion: print w/ replies, xml ) | Need Help?? |
|
xiaoyafeng has asked for the
wisdom of the Perl Monks concerning the following question:
Hi monks,
I have a script works well on Unix but is broken on Win32. I've found wait function might be the devil. Below is my test snippet:
I hope it print 1 to 100 in turn, but the output is totally insane. Eventually it print 'out of memory' and crash. I guess the reason is wait can't treat negative pid number correctly. So my question is whether my script could be reused on win32 by a little work or I have to totally rewrite it in thread? Thanks!I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||