AnyEvent-Fork
view release on metacpan or search on metacpan
Native win32 perls are somewhat supported (AnyEvent::Fork::Early is a nop,
and ::Template is not going to work), and it cost a lot of blood and sweat
to make it so, mostly due to the bloody broken perl that nobody seems to
care about. The fork emulation is a bad joke - I have yet to see something
useful that you can do with it without running into memory corruption
issues or other braindamage. Hrrrr.
Since fork is endlessly broken on win32 perls (it doesn't even remotely
work within it's documented limits) and quite obviously it's not getting
improved any time soon, the best way to proceed on windows would be to
always use C<new_exec> and thus never rely on perl's fork "emulation".
Cygwin perl is not supported at the moment due to some hilarious
shortcomings of its API - see L<IO::FDPoll> for more details. If you never
use C<send_fh> and always use C<new_exec> to create processes, it should
work though.
=head1 USING AnyEvent::Fork IN SUBPROCESSES
AnyEvent::Fork itself cannot generally be used in subprocesses. As long as
PORTABILITY NOTES
Native win32 perls are somewhat supported (AnyEvent::Fork::Early is a
nop, and ::Template is not going to work), and it cost a lot of blood
and sweat to make it so, mostly due to the bloody broken perl that
nobody seems to care about. The fork emulation is a bad joke - I have
yet to see something useful that you can do with it without running into
memory corruption issues or other braindamage. Hrrrr.
Since fork is endlessly broken on win32 perls (it doesn't even remotely
work within it's documented limits) and quite obviously it's not getting
improved any time soon, the best way to proceed on windows would be to
always use "new_exec" and thus never rely on perl's fork "emulation".
Cygwin perl is not supported at the moment due to some hilarious
shortcomings of its API - see IO::FDPoll for more details. If you never
use "send_fh" and always use "new_exec" to create processes, it should
work though.
USING AnyEvent::Fork IN SUBPROCESSES
AnyEvent::Fork itself cannot generally be used in subprocesses. As long
as only one process ever forks new processes, sharing the template
( run in 0.373 second using v1.01-cache-2.11-cpan-4e96b696675 )