2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00

Block signals to end of exec_cmd.

This commit is contained in:
K. Noel Belcourt
2015-01-02 16:25:18 -07:00
parent 87fa34a0c8
commit f5b31b30aa

View File

@@ -268,11 +268,6 @@ void exec_cmd
_exit( 127 );
}
/* restore previous signals */
sigaction(SIGINT, &saveintr, NULL);
sigaction(SIGQUIT, &savequit, NULL);
sigprocmask(SIG_SETMASK, &savemask, NULL);
/******************/
/* Parent process */
/******************/
@@ -314,6 +309,11 @@ void exec_cmd
/* Save input data into the selected running commands table slot. */
cmdtab[ slot ].func = func;
cmdtab[ slot ].closure = closure;
/* restore previous signals */
sigaction(SIGINT, &saveintr, NULL);
sigaction(SIGQUIT, &savequit, NULL);
sigprocmask(SIG_SETMASK, &savemask, NULL);
}
#undef EXECCMD_PIPE_READ