Skip to content

Commit

Permalink
test: use closefd in runner-unix.c (libuv#3497)
Browse files Browse the repository at this point in the history
This commit changes the plain close calls to
the closefd function, which will properly check if
close() returns an error.
  • Loading branch information
cabelitos authored and JeffroMF committed May 16, 2022
1 parent b31bec0 commit 0b233b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runner-unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0b233b0

Please sign in to comment.