Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

delay setting $0 in master. Fixes gh-7

  • Loading branch information...
commit 69a660068328b16468a273ad8e63d000d0fc03cb 1 parent 1cf8daf
@miyagawa miyagawa authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Starman/Server.pm
View
4 lib/Starman/Server.pm
@@ -92,8 +92,12 @@ sub pre_loop_hook {
TTIN => sub { $self->{server}->{$_}++ for qw( min_servers max_servers ) },
TTOU => sub { $self->{server}->{$_}-- for qw( min_servers max_servers ) },
);
+}
+sub run_parent {
+ my $self = shift;
$0 = "starman master " . join(" ", @{$self->{options}{argv} || []});
+ $self->SUPER::run_parent(@_);
}
# The below methods run in the child process
Please sign in to comment.
Something went wrong with that request. Please try again.