$options ||= {};
- die qq/Sorry, but "restart" doesn't work together with "fork".\n/
- if $options->{fork};
-
# Setup restarter
- my $restarter;
- my $parent = $$;
-
- unless ( $restarter = fork ) {
+ unless ( my $restarter = fork ) {
# Prepare
close STDIN;
# build the Kill request
my $req =
- HTTP::Request->new( 'KILL', '/',
+ HTTP::Request->new( 'RESTART', '/',
HTTP::Headers->new( 'Connection' => 'close' ) );
$req->protocol('HTTP/1.0');
=head1 METHODS
-=over 4
-
-=item run
-
-=back
+=head2 run
=head1 SEE ALSO