diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-02-24 21:37:24 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-02-24 21:37:24 +0000 |
commit | bec3de98dfab722b21e69a905bd83e4bfac22f72 (patch) | |
tree | 6bf8e01ac522e88cd4489a29bc44ce5a36ceea2b /Src/exec.c | |
parent | 48315b019b12ad62ee2e260926db2d0167f45450 (diff) | |
download | zsh-bec3de98dfab722b21e69a905bd83e4bfac22f72.tar.gz zsh-bec3de98dfab722b21e69a905bd83e4bfac22f72.tar.xz zsh-bec3de98dfab722b21e69a905bd83e4bfac22f72.zip |
27754 plus NEWS change: add "zsystem flock"
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index 7ba80d986..952d118c1 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -136,6 +136,12 @@ mod_export int coprocin; /**/ mod_export int coprocout; +/* count of file locks recorded in fdtable */ + +/**/ +int fdtable_flocks; + + /* != 0 if the line editor is active */ /**/ @@ -2716,7 +2722,8 @@ execcmd(Estate state, int input, int output, int how, int last1) if ((how & Z_ASYNC) || (!do_exec && (((is_builtin || is_shfunc) && output) || - (!is_cursh && (last1 != 1 || nsigtrapped || havefiles()))))) { + (!is_cursh && (last1 != 1 || nsigtrapped || havefiles() || + fdtable_flocks))))) { pid_t pid; int synch[2], flags; |