mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 13:01:28 +02:00
41386: when backgrounding a STAT_CURSH job, remove the flag.
This typical applies to a STAT_SUPERJOB. It prevents it from getting copied interrupts as a foreground process.
This commit is contained in:
parent
e8edd42f7f
commit
ae10f88bfb
2 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2017-07-02 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 41386: Src/jobs.c: when backgrounding a STAT_CURSH job, remove
|
||||
the flag, preventing it getting foreground signals.
|
||||
|
||||
* 22760: Src/utils.c, Test/D04parameter.ztst: NO_MULTIBYTE
|
||||
partial string lengths were reported as full string lengths.
|
||||
|
||||
|
|
|
@ -2288,8 +2288,10 @@ bin_fg(char *name, char **argv, Options ops, int func)
|
|||
case BIN_FG:
|
||||
case BIN_BG:
|
||||
case BIN_WAIT:
|
||||
if (func == BIN_BG)
|
||||
if (func == BIN_BG) {
|
||||
jobtab[job].stat |= STAT_NOSTTY;
|
||||
jobtab[job].stat &= ~STAT_CURSH;
|
||||
}
|
||||
if ((stopped = (jobtab[job].stat & STAT_STOPPED))) {
|
||||
makerunning(jobtab + job);
|
||||
if (func == BIN_BG) {
|
||||
|
|
Loading…
Reference in a new issue