diff options
Diffstat (limited to 'src/libstddjb')
-rw-r--r-- | src/libstddjb/fd_close.c | 4 |
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 ; } |