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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user