version 1.419, 2021/02/05 19:19:17 |
version 1.420, 2021/02/05 22:15:44 |
Line 1582 JobWriteShellCommands(Job *job, GNode *g |
|
Line 1582 JobWriteShellCommands(Job *job, GNode *g |
|
} |
} |
|
|
tfd = Job_TempFile(TMPPAT, tfile, sizeof tfile); |
tfd = Job_TempFile(TMPPAT, tfile, sizeof tfile); |
if (!DEBUG(SCRIPT)) |
|
eunlink(tfile); |
|
|
|
job->cmdFILE = fdopen(tfd, "w+"); |
job->cmdFILE = fdopen(tfd, "w+"); |
if (job->cmdFILE == NULL) |
if (job->cmdFILE == NULL) |
Line 2768 Job_TempFile(const char *pattern, char * |
|
Line 2766 Job_TempFile(const char *pattern, char * |
|
|
|
JobSigLock(&mask); |
JobSigLock(&mask); |
fd = mkTempFile(pattern, tfile, tfile_sz); |
fd = mkTempFile(pattern, tfile, tfile_sz); |
|
if (tfile != NULL && !DEBUG(SCRIPT)) |
|
unlink(tfile); |
JobSigUnlock(&mask); |
JobSigUnlock(&mask); |
|
|
return fd; |
return fd; |