Skip to content

Commit

Permalink
just call setuidgid from the daemon command
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 29, 2015
1 parent b9f92e3 commit 30054f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.76 2015-01-28
5.76 2015-01-29
- Increased default max_message_size from 10MB to 16MB in Mojo::Message.
- Reduced default max_line_size from 10KB to 8KB in Mojo::Headers and
Mojo::Message.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Daemon.pm
Expand Up @@ -25,7 +25,7 @@ sub DESTROY {
sub run {
my $self = shift;
local $SIG{INT} = local $SIG{TERM} = sub { $self->ioloop->stop };
$self->start->setuidgid->ioloop->start;
$self->start->ioloop->start;
}

sub start {
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/daemon.pm
Expand Up @@ -22,7 +22,7 @@ sub run {
'u|user=s' => sub { $daemon->user($_[1]) };

$daemon->listen(\@listen) if @listen;
$daemon->run;
$daemon->setuidgid->run;
}

1;
Expand Down

0 comments on commit 30054f1

Please sign in to comment.