Avoid leaving temporary batch files in the temporary directory.
authorEli Zaretskii <eliz@gnu.org>
Fri, 7 Dec 2012 14:11:15 +0000 (14:11 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 7 Dec 2012 14:11:15 +0000 (14:11 +0000)
commit715927552ff90f6e77598ca2c216d49527368323
tree7cb3f01efd7c311a0b13f9b26821d50f50f33a4a
parent7670c84f7732db29f5a9d9c145c2327f4b575f91
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