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:
Guilherme Íscaro 2022-02-27 10:49:58 +00:00 committed by GitHub
parent 993e9ebd07
commit 56e279021f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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