AnyEvent-Fork
view release on metacpan or search on metacpan
reduces the amount of memory sharing that is possible, and is also slower.
You should use C<new> whenever possible, except when having a template
process around is unacceptable.
The path to the perl interpreter is divined using various methods - first
C<$^X> is investigated to see if the path ends with something that looks
as if it were the perl interpreter. Failing this, the module falls back to
using C<$Config::Config{perlpath}>.
The path to perl can also be overridden by setting the global variable
C<$AnyEvent::Fork::PERL> - it's value will be used for all subsequent
invocations.
=cut
our $PERL;
sub new_exec {
my ($self) = @_;
possible, and is also slower.
You should use "new" whenever possible, except when having a
template process around is unacceptable.
The path to the perl interpreter is divined using various methods -
first $^X is investigated to see if the path ends with something
that looks as if it were the perl interpreter. Failing this, the
module falls back to using $Config::Config{perlpath}.
The path to perl can also be overridden by setting the global
variable $AnyEvent::Fork::PERL - it's value will be used for all
subsequent invocations.
$pid = $proc->pid
Returns the process id of the process *iff it is a direct child of
the process running AnyEvent::Fork*, and "undef" otherwise. As a
general rule (that you cannot rely upon), processes created via
"new_exec", AnyEvent::Fork::Early or AnyEvent::Fork::Template are
direct children, while all other processes are not.
( run in 0.969 second using v1.01-cache-2.11-cpan-49f99fa48dc )