Better SIGPIPE handle (#2455)

This commit is contained in:
Yadd 2021-07-02 12:17:04 +02:00
parent 0634fcaf98
commit 4494bd1e5b
1 changed files with 3 additions and 0 deletions

View File

@ -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} ) {