if there is a custom term handler in place, call it when Fatal

This commit is contained in:
Isaac Connor 2018-02-11 14:17:44 -05:00
parent 498c4e625d
commit 956f9ee193
1 changed files with 3 additions and 0 deletions

View File

@ -714,6 +714,9 @@ sub error {
sub Fatal( @ ) {
fetch()->logPrint( FATAL, @_ );
if ( $SIG{TERM} ne 'DEFAULT' ) {
$SIG{TERM}();
}
exit( -1 );
}