Commit 4494bd1e authored by Yadd's avatar Yadd
Browse files

Better SIGPIPE handle (#2455)

parent 0634fcaf
Pipeline #14437 passed with stages
in 17 minutes and 10 seconds
......@@ -104,6 +104,9 @@ require Lemonldap::NG::Handler::Server::Nginx;
$_apps{handler} = Lemonldap::NG::Handler::Server::Nginx->run( {} );
my $app = sub {
$SIG{'PIPE'} = sub {
print STDERR "Got a PIPE signal";
};
my $type = $_[0]->{LLTYPE} || 'handler';
return $_apps{$type}->(@_) if ( defined $_apps{$type} );
if ( defined $builder{$type} ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment