summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2000-08-01 21:19:09 +0000
committerjasone <jasone@FreeBSD.org>2000-08-01 21:19:09 +0000
commita8691b84207f1350a08bf646a6b0ef37b86d24c0 (patch)
tree293b7aa4daa81b04615ec6d65bceb18c967e3c56 /lib/libc/gen
parentd0631cde55a2d25fa1322a6b9aa2b01729dc19b4 (diff)
downloadFreeBSD-src-a8691b84207f1350a08bf646a6b0ef37b86d24c0.zip
FreeBSD-src-a8691b84207f1350a08bf646a6b0ef37b86d24c0.tar.gz
Make sem_post() safe to call from within a signal handler, as required by
POSIX/SUSv2.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/sem_post.33
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/gen/sem_post.3 b/lib/libc/gen/sem_post.3
index 906d86d..34fef83 100644
--- a/lib/libc/gen/sem_post.3
+++ b/lib/libc/gen/sem_post.3
@@ -48,6 +48,9 @@ If there are threads blocked on the semaphore when
is called, then the highest priority thread that has been blocked the longest on
the semaphore will be allowed to return from
.Fn sem_wait .
+.Pp
+.Fn sem_post
+is signal-reentrant and may be called within signal handlers.
.Sh RETURN VALUES
If successful,
.Fn sem_post
OpenPOWER on IntegriCloud