|Problems? Is your data what you think it is?|
Re^4: Threads and signals in Windowsby bojinlund (Vicar)
|on Mar 10, 2013 at 07:01 UTC||Need Help??|
BrowserUk, thank you!
What I would say; and have said many times; is do not attempt to use fork & the windows signals emulation to try to port *nix idioms to windows; because you will be sadly let down.
Based on this, I will propose an addition to the documentation of function fork (and perhaps also kill) in the Perl Language reference.
My “thread-bomb” resulted in a patch. The patch http://perl5.git.perl.org/perl.git/commitdiff/82e24582 adds to t/op/fork.t:
Is this also a thread-bomb, or is it OK with non zero sleep?
The patch also changes win32/win32.c:
Is it OK with “Sleep(0)”, or must it be a non zero parameter value? Can the non zero time value cause that we still sometimes get 9 as an erroneous exit value? What is the smallest non-zero value that can be used?