FreeBSD/lib/libthr/thread/thr_syscalls.c
/*
 * Cancellation behavior:
 *   If the thread is canceled, connection is not made.
 */
Cancellation behavior:
If the thread is canceled, connection is not made.
Cancellation behavior : If the thread is canceled connection is not made .
static int
__thr_connect(int fd, const struct sockaddr *name, socklen_t namelen)
{
	struct pthread *curthread;
	int ret;
	curthread = _get_curthread();
	_thr_cancel_enter(curthread);
	ret = __sys_connect(fd, name, namelen);
	_thr_cancel_leave(curthread, ret == -1);
 	return (ret);
}
static int __thr_connect ( int fd , const struct sockaddr * name , socklen_t namelen ) { struct pthread * curthread ; int ret ; curthread = _get_curthread ( ) ; _thr_cancel_enter ( curthread ) ; ret = __sys_connect ( fd , name , namelen ) ; _thr_cancel_leave ( curthread , ret == -1 ) ; return ( ret ) ; }
Cancellation behavior:
   If the thread is canceled, connection is not made.
Cancellation behavior : If the thread is canceled connection is not made .