From a8691b84207f1350a08bf646a6b0ef37b86d24c0 Mon Sep 17 00:00:00 2001 From: jasone Date: Tue, 1 Aug 2000 21:19:09 +0000 Subject: Make sem_post() safe to call from within a signal handler, as required by POSIX/SUSv2. --- lib/libpthread/man/sem_post.3 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/libpthread/man') diff --git a/lib/libpthread/man/sem_post.3 b/lib/libpthread/man/sem_post.3 index 906d86d..34fef83 100644 --- a/lib/libpthread/man/sem_post.3 +++ b/lib/libpthread/man/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 -- cgit v1.1