From 56e279021f751699500e5f3c958e3fcdff3ec7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20=C3=8Dscaro?= Date: Sun, 27 Feb 2022 10:49:58 +0000 Subject: [PATCH] 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. --- test/runner-unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runner-unix.c b/test/runner-unix.c index a13648bc..c165aab9 100644 --- a/test/runner-unix.c +++ b/test/runner-unix.c @@ -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; }