diff options
author | Paul Smith <psmith@gnu.org> | 2011-11-14 00:18:38 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2011-11-14 00:18:38 +0000 |
commit | 934f51d166848c275828f14ad5cc29fe1c3b578a (patch) | |
tree | b80216784296d9dc9f709d1afdace3b09385ea66 /main.c | |
parent | bfc3e1ca7c0c1504c9873ee1baacce73330b037e (diff) | |
download | gunmake-934f51d166848c275828f14ad5cc29fe1c3b578a.tar.gz |
In very obscure situations we may write the free token back to the pipe.
Don't do that. I couldn't come up with a repro case for this!
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3116,7 +3116,8 @@ clean_jobserver (int status) "INTERNAL: Exiting with %u jobserver tokens (should be 0)!", jobserver_tokens); else - while (jobserver_tokens--) + /* Don't write back the "free" token */ + while (--jobserver_tokens) { int r; |