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.71 by root, Wed Jul 25 22:35:00 2018 UTC vs.
Revision 1.74 by root, Mon Dec 11 05:34:15 2023 UTC

465use AnyEvent; 465use AnyEvent;
466use AnyEvent::Util (); 466use AnyEvent::Util ();
467 467
468use IO::FDPass; 468use IO::FDPass;
469 469
470our $VERSION = 1.31; 470our $VERSION = 1.32;
471 471
472# the early fork template process 472# the early fork template process
473our $EARLY; 473our $EARLY;
474 474
475# the empty template process 475# the empty template process
701 $_[0][PID] 701 $_[0][PID]
702} 702}
703 703
704=item $proc = $proc->eval ($perlcode, @args) 704=item $proc = $proc->eval ($perlcode, @args)
705 705
706Evaluates the given C<$perlcode> as ... Perl code, while setting C<@_> to 706Evaluates the given C<$perlcode> as ... Perl code, while setting C<@_>
707the strings specified by C<@args>, in the "main" package. 707to the strings specified by C<@args>, in the "main" package (so you can
708access the args using C<$_[0]> and so on, but not using implicit C<shift>
709as the latter works on C<@ARGV>).
708 710
709This call is meant to do any custom initialisation that might be required 711This call is meant to do any custom initialisation that might be required
710(for example, the C<require> method uses it). It's not supposed to be used 712(for example, the C<require> method uses it). It's not supposed to be used
711to completely take over the process, use C<run> for that. 713to completely take over the process, use C<run> for that.
712 714

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines