about summary refs log tree commit diff
path: root/csu/check_fds.c
diff options
context:
space:
mode:
Diffstat (limited to 'csu/check_fds.c')
-rw-r--r--csu/check_fds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/csu/check_fds.c b/csu/check_fds.c
index 2b181d44ab..605ee4f3f4 100644
--- a/csu/check_fds.c
+++ b/csu/check_fds.c
@@ -39,8 +39,7 @@
 static void
 check_one_fd (int fd, int mode)
 {
-  /* Note that fcntl() with this parameter is not a cancellation point.  */
-  if (__builtin_expect (__libc_fcntl (fd, F_GETFD), 0) == -1
+  if (__builtin_expect (__fcntl_nocancel (fd, F_GETFD), 0) == -1
       && errno == EBADF)
     {
       const char *name;