ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-Fork/Fork.pm
(Generate patch)

Comparing AnyEvent-Fork/Fork.pm (file contents):
Revision 1.44 by root, Thu Apr 18 10:49:59 2013 UTC vs.
Revision 1.47 by root, Thu Apr 18 20:17:34 2013 UTC

255=head1 CONCEPTS 255=head1 CONCEPTS
256 256
257This module can create new processes either by executing a new perl 257This module can create new processes either by executing a new perl
258process, or by forking from an existing "template" process. 258process, or by forking from an existing "template" process.
259 259
260All these processes are called "child processes" (whether they are direct
261children or not), while the process that manages them is called the
262"parent process".
263
260Each such process comes with its own file handle that can be used to 264Each such process comes with its own file handle that can be used to
261communicate with it (it's actually a socket - one end in the new process, 265communicate with it (it's actually a socket - one end in the new process,
262one end in the main process), and among the things you can do in it are 266one end in the main process), and among the things you can do in it are
263load modules, fork new processes, send file handles to it, and execute 267load modules, fork new processes, send file handles to it, and execute
264functions. 268functions.
373use AnyEvent; 377use AnyEvent;
374use AnyEvent::Util (); 378use AnyEvent::Util ();
375 379
376use IO::FDPass; 380use IO::FDPass;
377 381
378our $VERSION = 0.6; 382our $VERSION = 0.7;
379 383
380# the early fork template process 384# the early fork template process
381our $EARLY; 385our $EARLY;
382 386
383# the empty template process 387# the empty template process
906Cygwin perl is not supported at the moment due to some hilarious 910Cygwin perl is not supported at the moment due to some hilarious
907shortcomings of its API - see L<IO::FDPoll> for more details. 911shortcomings of its API - see L<IO::FDPoll> for more details.
908 912
909=head1 SEE ALSO 913=head1 SEE ALSO
910 914
911L<AnyEvent::Fork::Early> (to avoid executing a perl interpreter), 915L<AnyEvent::Fork::Early>, to avoid executing a perl interpreter at all
916(part of this distribution).
917
912L<AnyEvent::Fork::Template> (to create a process by forking the main 918L<AnyEvent::Fork::Template>, to create a process by forking the main
913program at a convenient time), L<AnyEvent::Fork::RPC> (for simple RPC to 919program at a convenient time (part of this distribution).
914child processes). 920
921L<AnyEvent::Fork::RPC>, for simple RPC to child processes (on CPAN).
915 922
916=head1 AUTHOR AND CONTACT INFORMATION 923=head1 AUTHOR AND CONTACT INFORMATION
917 924
918 Marc Lehmann <schmorp@schmorp.de> 925 Marc Lehmann <schmorp@schmorp.de>
919 http://software.schmorp.de/pkg/AnyEvent-Fork 926 http://software.schmorp.de/pkg/AnyEvent-Fork

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines