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_connect.c | |
| parent | 67ba86782755d3bfd6627754b8470b1614ba9833 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_connect.c')
| -rw-r--r-- | lib/libpthread/thread/thr_connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_connect.c b/lib/libpthread/thread/thr_connect.c index 7e29a6d60593..2d5614b5ef51 100644 --- a/lib/libpthread/thread/thr_connect.c +++ b/lib/libpthread/thread/thr_connect.c @@ -43,7 +43,7 @@ __connect(int fd, const struct sockaddr *name, socklen_t namelen) curthread = _get_curthread(); _thr_cancel_enter(curthread); ret = __sys_connect(fd, name, namelen); - _thr_cancel_leave(curthread, ret != 0); + _thr_cancel_leave(curthread, ret == -1); return (ret); } |
