summaryrefslogtreecommitdiff
path: root/src/libstddjb
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-12-04 08:48:45 +0000
committerLaurent Bercot <ska@appnovation.com>2021-12-04 08:48:45 +0000
commit032b853746aabb8c3b82af674fdc783b511569f2 (patch)
tree79edb0d7148cf2ef34874a20a3f760e464d50025 /src/libstddjb
parent450e114e1e1651c65dfcdbfa3c6f3967163976b3 (diff)
downloadskalibs-032b853746aabb8c3b82af674fdc783b511569f2.tar.xz
Add opendir_at, prepare for 2.11.1.0
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libstddjb')
-rw-r--r--src/libstddjb/fd_close.c4
1 files changed, 2 insertions, 2 deletions
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 <unistd.h>
#include <errno.h>
+#include <unistd.h>
#include <skalibs/djbunix.h>
void fd_close (int fd)
{
int e = errno ;
- while (close(fd) < 0 && errno == EINTR) ;
+ close(fd) ;
errno = e ;
}