… | |
… | |
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 = "$_[1] of $parent"; |
561 | $0 = "$AnyEvent::Fork::Serve::OWNER 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 | } |