diff options
Diffstat (limited to 'lib/libthr/thread')
-rw-r--r-- | lib/libthr/thread/thr_sem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_sem.c b/lib/libthr/thread/thr_sem.c index ec059f9..6a0bfc1 100644 --- a/lib/libthr/thread/thr_sem.c +++ b/lib/libthr/thread/thr_sem.c @@ -282,8 +282,8 @@ _sem_post(sem_t *sem) if ((*sem)->nwaiters) { retval = _thr_umtx_wake(&(*sem)->count, 1); - if (retval > 0) - retval = 0; + if (retval != 0) + retval = -1; } return (retval); } |