From: Roland McGrath Date: Thu, 6 May 1993 21:30:42 +0000 (+0000) Subject: Formerly commands.c.~18~ X-Git-Tag: 3.70.2~292 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c82e72caa5e42dea807fe4ba9a6fb9b441e2b39;p=thirdparty%2Fmake.git Formerly commands.c.~18~ --- diff --git a/commands.c b/commands.c index 07729465..1cfe0cff 100644 --- a/commands.c +++ b/commands.c @@ -318,12 +318,19 @@ execute_file_commands (file) new_job (file); } +/* This is set while we are inside fatal_error_signal, + so things can avoid nonreentrant operations. */ + +int handling_fatal_signal = 0; + /* Handle fatal signals. */ RETSIGTYPE fatal_error_signal (sig) int sig; { + handling_fatal_signal = 1; + signal (sig, SIG_DFL); #ifdef POSIX {