Skip to content
Snippets Groups Projects
Commit 13e02b76 authored by Matthias Männich's avatar Matthias Männich
Browse files

processUNIX: close intermediate file descriptor in error case

parent 862562ce
No related branches found
No related tags found
No related merge requests found
......@@ -1938,6 +1938,7 @@ static int kwsysProcessSetupOutputPipeFile(int* p, const char* name)
/* Set close-on-exec flag on the pipe's end. */
if (fcntl(fout, F_SETFD, FD_CLOEXEC) < 0) {
close(fout);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment