aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cbs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cbs.h b/cbs.h
index 0f8551c..b2ea314 100644
--- a/cbs.h
+++ b/cbs.h
@@ -288,7 +288,10 @@ foutdated(const char *src, char **deps, size_t n)
int
cmdexec(struct strs xs)
{
- return cmdwait(cmdexec_async(xs));
+ flockfile(stderr);
+ int ret = cmdwait(cmdexec_async(xs));
+ funlockfile(stderr);
+ return ret;
}
pid_t