if there is a custom term handler in place, call it when Fatal
This commit is contained in:
parent
498c4e625d
commit
956f9ee193
|
@ -714,6 +714,9 @@ sub error {
|
|||
|
||||
sub Fatal( @ ) {
|
||||
fetch()->logPrint( FATAL, @_ );
|
||||
if ( $SIG{TERM} ne 'DEFAULT' ) {
|
||||
$SIG{TERM}();
|
||||
}
|
||||
exit( -1 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue