mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-21 02:42:51 +02:00
Bash-5.1 patch 10: fix for wait -n being interrupted by a trapped signal
This commit is contained in:
+4
-1
@@ -111,7 +111,8 @@ int
|
||||
wait_builtin (list)
|
||||
WORD_LIST *list;
|
||||
{
|
||||
int status, code, opt, nflag, wflags;
|
||||
int status, code, opt, nflag;
|
||||
volatile int wflags;
|
||||
char *vname;
|
||||
SHELL_VAR *pidvar;
|
||||
struct procstat pstat;
|
||||
@@ -180,6 +181,8 @@ wait_builtin (list)
|
||||
last_command_exit_signal = wait_signal_received;
|
||||
status = 128 + wait_signal_received;
|
||||
wait_sigint_cleanup ();
|
||||
if (wflags & JWAIT_WAITING)
|
||||
unset_waitlist ();
|
||||
WAIT_RETURN (status);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user