From bec3de98dfab722b21e69a905bd83e4bfac22f72 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 24 Feb 2010 21:37:24 +0000 Subject: 27754 plus NEWS change: add "zsystem flock" --- Src/exec.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Src/exec.c') 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; -- cgit 1.4.1