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.68 by root, Sat May 21 07:01:58 2016 UTC vs.
Revision 1.69 by root, Sat Nov 5 19:12:15 2016 UTC

556 556
557 if ($pid eq 0) { 557 if ($pid eq 0) {
558 require AnyEvent::Fork::Serve; 558 require AnyEvent::Fork::Serve;
559 $AnyEvent::Fork::Serve::OWNER = $parent; 559 $AnyEvent::Fork::Serve::OWNER = $parent;
560 close $fh; 560 close $fh;
561 $0 = "$AnyEvent::Fork::Serve::OWNER AnyEvent::Fork/exec"; 561 $0 = "$parent AnyEvent::Fork/exec";
562 AnyEvent::Fork::Serve::serve ($slave); 562 AnyEvent::Fork::Serve::serve ($slave);
563 exit 0; 563 exit 0;
564 } elsif (!$pid) { 564 } elsif (!$pid) {
565 die "AnyEvent::Fork::Early/Template: unable to fork template process: $!"; 565 die "AnyEvent::Fork::Early/Template: unable to fork template process: $!";
566 } 566 }
907 $self->_cmd (r => $func); 907 $self->_cmd (r => $func);
908} 908}
909 909
910=back 910=back
911 911
912
913=head2 CHILD PROCESS INTERFACE
914
915This module has a limited API for use in child processes.
916
917=over 4
918
919=item @args = AnyEvent::Fork::Serve::run_args
920
921This function, which only exists before the C<run> method is called,
922returns the arguments that would be passed to the run function, and clears
923them.
924
925This is mainly useful to get any file handles passed via C<send_fh>, but
926works for any arguments passed via C<< send_I<xxx> >> methods.
927
928=back
929
930
912=head2 EXPERIMENTAL METHODS 931=head2 EXPERIMENTAL METHODS
913 932
914These methods might go away completely or change behaviour, at any time. 933These methods might go away completely or change behaviour, at any time.
915 934
916=over 4 935=over 4

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines