aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix/fdopendir.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/fdopendir.c')
-rw-r--r--sysdeps/posix/fdopendir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/fdopendir.c b/sysdeps/posix/fdopendir.c
index ab4541f..dafb5d2 100644
--- a/sysdeps/posix/fdopendir.c
+++ b/sysdeps/posix/fdopendir.c
@@ -38,7 +38,7 @@ __fdopendir (int fd)
}
/* Make sure the descriptor allows for reading. */
- int flags = __fcntl (fd, F_GETFL);
+ int flags = __fcntl_nocancel (fd, F_GETFL);
if (__glibc_unlikely (flags == -1))
return NULL;
if (__glibc_unlikely ((flags & O_ACCMODE) == O_WRONLY))