diff options
| author | David Xu <davidxu@FreeBSD.org> | 2008-01-07 02:26:29 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2008-01-07 02:26:29 +0000 |
| commit | 0c921dadbbe90654db67ad2a3aa691cc9e53d7a0 (patch) | |
| tree | 00d5e2766040c896d9329fad9b9b8cb56d3ac1c0 /lib | |
| parent | f09b75d98b0277b6c73f8e6761fdf44dc0c8742f (diff) | |
Notes
Diffstat (limited to 'lib')
| -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 ec059f9edb77..6a0bfc12e774 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); } |
