summaryrefslogtreecommitdiff
path: root/src/libunixonacid/open3_at.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-07-06 15:04:07 +0000
committerLaurent Bercot <ska@appnovation.com>2023-07-06 15:04:07 +0000
commit30ee76d489393d3b1ba5fd81c0c998ff1e56da8e (patch)
tree447bc717d5e10a4fee0cc8075eb1f55ebfcb7a05 /src/libunixonacid/open3_at.c
parent9964840c291e46a0e001d930e2dd2fb0e1b16967 (diff)
downloadskalibs-30ee76d489393d3b1ba5fd81c0c998ff1e56da8e.tar.xz
More more jjk fixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libunixonacid/open3_at.c')
-rw-r--r--src/libunixonacid/open3_at.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libunixonacid/open3_at.c b/src/libunixonacid/open3_at.c
index d4234d4..063092d 100644
--- a/src/libunixonacid/open3_at.c
+++ b/src/libunixonacid/open3_at.c
@@ -9,12 +9,18 @@
#endif
#include <skalibs/nonposix.h>
+
+#include <errno.h>
#include <fcntl.h>
+
#include <skalibs/unix-transactional.h>
int open3_at (int dirfd, char const *file, int flags, unsigned int mode)
{
- return openat(dirfd, file, flags, mode) ;
+ int fd ;
+ do fd = openat(dirfd, file, flags, mode) ;
+ while (fd == -1 && errno == EINTR) ;
+ return fd ;
}
#else