summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_fcntl.c
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>1999-11-28 05:38:13 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>1999-11-28 05:38:13 +0000
commit7285bccf1a9224fadd3b7b81be034cd04f35a820 (patch)
tree124a02d2660bf074fa7b02495dcb9d400ac52505 /lib/libpthread/thread/thr_fcntl.c
parentd29b1c8b20283bd2639ac939af816f5a6824dbb1 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_fcntl.c')
-rw-r--r--lib/libpthread/thread/thr_fcntl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_fcntl.c b/lib/libpthread/thread/thr_fcntl.c
index 9a6293c5e3c8e..878554cdbc1d5 100644
--- a/lib/libpthread/thread/thr_fcntl.c
+++ b/lib/libpthread/thread/thr_fcntl.c
@@ -47,6 +47,8 @@ fcntl(int fd, int cmd,...)
int ret;
va_list ap;
+ _thread_enter_cancellation_point();
+
/* Lock the file descriptor: */
if ((ret = _FD_LOCK(fd, FD_RDWR, NULL)) == 0) {
/* Initialise the variable argument list: */
@@ -135,6 +137,7 @@ fcntl(int fd, int cmd,...)
/* Unlock the file descriptor: */
_FD_UNLOCK(fd, FD_RDWR);
}
+ _thread_leave_cancellation_point();
/* Return the completion status: */
return (ret);