FreeBSD/lib/libthr/thread/thr_syscalls.c
/*
 * Cancellation behavior:
 *   If thread is canceled, no socket is created.
 */
Cancellation behavior:
If thread is canceled, no socket is created.
Cancellation behavior : If thread is canceled no socket is created .
static int
__thr_accept4(int s, struct sockaddr *addr, socklen_t *addrlen, int flags)
{
	struct pthread *curthread;
	int ret;
	curthread = _get_curthread();
	_thr_cancel_enter(curthread);
	ret = __sys_accept4(s, addr, addrlen, flags);
	_thr_cancel_leave(curthread, ret == -1);
 	return (ret);
}
static int __thr_accept4 ( int s , struct sockaddr * addr , socklen_t * addrlen , int flags ) { struct pthread * curthread ; int ret ; curthread = _get_curthread ( ) ; _thr_cancel_enter ( curthread ) ; ret = __sys_accept4 ( s , addr , addrlen , flags ) ; _thr_cancel_leave ( curthread , ret == -1 ) ; return ( ret ) ; }
Cancellation behavior:
   If thread is canceled, no socket is created.
Cancellation behavior : If thread is canceled no socket is created .