Better SIGPIPE handle (#2455)
This commit is contained in:
parent
0634fcaf98
commit
4494bd1e5b
|
@ -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} ) {
|
||||
|
|
Loading…
Reference in New Issue