Check to make sure fdopen() succeeds in make(1).

Submitted by:	jmallett
Inspired by:	NetBSD
This commit is contained in:
David E. O'Brien 2002-04-13 09:10:07 +00:00
parent 146b8183bc
commit da363cd56a

View File

@ -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;
}