mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 17:20:25 +02:00
39436: Pass on status of SIGINT better.
Set lastval to 128 + SIGINT on interrupt. Don't execute builtin if already interrupted at that point.
This commit is contained in:
parent
759e5912fd
commit
e35dcae40f
3 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2016-09-25 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 39436: Src/exec.c, Src/signals.c: Don't execute builtin if
|
||||
interrupted; set lastval to 128 + SIGINT on interrupt.
|
||||
|
||||
* 39435: Src/exec.c: Don't set gleader of SUBJOB immediately if
|
||||
SUPERJOB has no processes.
|
||||
|
||||
|
|
|
|||
|
|
@ -3701,6 +3701,7 @@ execcmd(Estate state, int input, int output, int how, int last1)
|
|||
state->pc = opc;
|
||||
}
|
||||
dont_queue_signals();
|
||||
if (!errflag)
|
||||
lastval = execbuiltin(args, assigns, (Builtin) hn);
|
||||
if (do_save & BINF_COMMAND)
|
||||
errflag &= ~ERRFLAG_ERROR;
|
||||
|
|
|
|||
|
|
@ -646,6 +646,7 @@ zhandler(int sig)
|
|||
inerrflush();
|
||||
check_cursh_sig(SIGINT);
|
||||
}
|
||||
lastval = 128 + SIGINT;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue