From 032b853746aabb8c3b82af674fdc783b511569f2 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 4 Dec 2021 08:48:45 +0000 Subject: Add opendir_at, prepare for 2.11.1.0 Signed-off-by: Laurent Bercot --- src/libstddjb/fd_close.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstddjb') diff --git a/src/libstddjb/fd_close.c b/src/libstddjb/fd_close.c index a3c7880..dad6518 100644 --- a/src/libstddjb/fd_close.c +++ b/src/libstddjb/fd_close.c @@ -1,12 +1,12 @@ /* ISC license. */ -#include #include +#include #include void fd_close (int fd) { int e = errno ; - while (close(fd) < 0 && errno == EINTR) ; + close(fd) ; errno = e ; } -- cgit v1.2.3