Browse files

Make use of psgi_app_builder

  • Loading branch information...
1 parent 6b2cc12 commit 993c66e43096a52cac257f950f7e26ff69ed0289 @clkao clkao committed Apr 13, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Starman/Server.pm
View
3 lib/Starman/Server.pm
@@ -100,6 +100,9 @@ sub pre_loop_hook {
sub child_init_hook {
my $self = shift;
+ if ($self->{options}->{psgi_app_builder}) {
+ $self->{app} = $self->{options}->{psgi_app_builder}->();
+ }
$0 = "starman worker " . join(" ", @{$self->{options}{argv} || []});
}

0 comments on commit 993c66e

Please sign in to comment.