test: use closefd in runner-unix.c (#3497)
This commit changes the plain close calls to the closefd function, which will properly check if close() returns an error.
This commit is contained in:
parent
993e9ebd07
commit
56e279021f
@ -333,8 +333,8 @@ int process_wait(process_info_t* vec, int n, int timeout) {
|
||||
abort();
|
||||
|
||||
terminate:
|
||||
close(args.pipe[0]);
|
||||
close(args.pipe[1]);
|
||||
closefd(args.pipe[0]);
|
||||
closefd(args.pipe[1]);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user