mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-30 15:02:18 +01:00
22656: improve handling of monitor option
This commit is contained in:
parent
f20b66dd24
commit
17001a765d
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-08-22 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 22656: Src/options.c (slightly tweaked): improve handling of
|
||||
monitor option a bit.
|
||||
|
||||
2006-08-21 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* zsh-users/10634: Completion/compinstall: attempt to fix up
|
||||
|
|
|
@ -687,7 +687,16 @@ dosetopt(int optno, int value, int force)
|
|||
setuid(getuid());
|
||||
setgid(getgid());
|
||||
#endif /* HAVE_SETUID */
|
||||
#ifndef JOB_CONTROL
|
||||
#ifdef JOB_CONTROL
|
||||
} else if (!force && optno == MONITOR && value) {
|
||||
if (opts[optno] == value)
|
||||
return 0;
|
||||
if (interact && (SHTTY != -1)) {
|
||||
origpgrp = GETPGRP();
|
||||
acquire_pgrp();
|
||||
} else
|
||||
return -1;
|
||||
#else
|
||||
} else if(optno == MONITOR && value) {
|
||||
return -1;
|
||||
#endif /* not JOB_CONTROL */
|
||||
|
|
Loading…
Reference in a new issue