Check to make sure fdopen() succeeds in make(1).
Submitted by: jmallett Inspired by: NetBSD
This commit is contained in:
parent
146b8183bc
commit
da363cd56a
@ -818,6 +818,8 @@ JobFinish(job, status)
|
||||
* output file as well.
|
||||
*/
|
||||
out = fdopen(job->outFd, "w");
|
||||
if (out == NULL)
|
||||
Punt("Cannot fdopen");
|
||||
} else {
|
||||
out = stdout;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user