diff options
author | David Leonard <d@cvs.openbsd.org> | 1999-06-09 07:16:18 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 1999-06-09 07:16:18 +0000 |
commit | 5b25504c910ae952393636884728bb911ccd8733 (patch) | |
tree | 883d88f07de3449ef2ca038b75c007b57ce95e3d /lib/libc_r/uthread/uthread_msync.c | |
parent | 26ab430a80ba9c64b06a358f6b69d491a912f54a (diff) |
document cancellation point handling a bit better
Diffstat (limited to 'lib/libc_r/uthread/uthread_msync.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_msync.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_msync.c b/lib/libc_r/uthread/uthread_msync.c index 246cdde7226..fb7d5a7e86e 100644 --- a/lib/libc_r/uthread/uthread_msync.c +++ b/lib/libc_r/uthread/uthread_msync.c @@ -1,7 +1,7 @@ /* * David Leonard <d@openbsd.org>, 1999. Public Domain. * - * $OpenBSD: uthread_msync.c,v 1.1 1999/01/17 23:43:18 d Exp $ + * $OpenBSD: uthread_msync.c,v 1.2 1999/06/09 07:16:17 d Exp $ */ #include <sys/types.h> @@ -24,9 +24,15 @@ msync(addr, len, flags) * write. The only real use of this wrapper is to guarantee * a cancellation point, as per the standard. sigh. */ + + /* This is a cancellation point: */ _thread_enter_cancellation_point(); + ret = _thread_sys_msync(addr, len, flags); + + /* No longer in a cancellation point: */ _thread_leave_cancellation_point(); + return (ret); } #endif |