From: Paul Smith Date: Mon, 14 Nov 2011 00:18:38 +0000 (+0000) Subject: In very obscure situations we may write the free token back to the pipe. X-Git-Tag: moved-to-git~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=934f51d166848c275828f14ad5cc29fe1c3b578a;p=thirdparty%2Fmake.git 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! --- diff --git a/ChangeLog b/ChangeLog index 52724d13..86558470 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,11 @@ 2011-11-13 Paul Smith + * main.c (clean_jobserver): Don't write the free token to the pipe. + Change suggested by Tim Newsome + * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Add support for Darwin. - Patch provided by Troy Runkel * filedef.h (FILE_TIMESTAMP_STAT_MODTIME): Ditto. + Patch provided by Troy Runkel 2011-09-18 Paul Smith diff --git a/main.c b/main.c index 75eb4941..d260859a 100644 --- a/main.c +++ b/main.c @@ -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;