Avoid leaving temporary batch files in the temporary directory.
commitb5efb7d964778ea9efa81231c3daec1f55d4d91d
authoreliz <eliz>
Fri, 7 Dec 2012 14:11:15 +0000 (7 14:11 +0000)
committereliz <eliz>
Fri, 7 Dec 2012 14:11:15 +0000 (7 14:11 +0000)
treed27cf6223e82af8167a543b472ac245286ffd14e
parent3a455838d853b2e27d960434e14ce61c272f802c
Avoid leaving temporary batch files in the temporary directory.

 job.c (create_batch_file): Declare the counter of batch files
 static, to avoid having 2 jobs using the same file name and
 stepping on each other's toes.  When all 64K names are used up,
 make one more loop looking for slots that became vacant.  This
 avoids leaving behind temporary batch files in the temporary
 directory, which happens frequently on a fast machine when using
 parallel builds.
ChangeLog
job.c