diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2003-12-09 23:40:27 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2003-12-09 23:40:27 +0000 |
| commit | 6ed6ccb31089414b6fb75f044ddff2fec29b7191 (patch) | |
| tree | 8ef65c0f46838cf3afdf3a384a36eb475709ec6b /lib/libpthread/thread/thr_accept.c | |
| parent | 67ba86782755d3bfd6627754b8470b1614ba9833 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_accept.c')
| -rw-r--r-- | lib/libpthread/thread/thr_accept.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_accept.c b/lib/libpthread/thread/thr_accept.c index 3bb40317a27b..0131bc8eb97c 100644 --- a/lib/libpthread/thread/thr_accept.c +++ b/lib/libpthread/thread/thr_accept.c @@ -43,7 +43,7 @@ __accept(int s, struct sockaddr *addr, socklen_t *addrlen) curthread = _get_curthread(); _thr_cancel_enter(curthread); ret = __sys_accept(s, addr, addrlen); - _thr_cancel_leave(curthread, ret != 0); + _thr_cancel_leave(curthread, ret == -1); return (ret); } |
