FreeBSD/lib/libthr/thread/thr_sig.c
/*
 * Cancellation behavior:
 *   Thread may be canceled at start, if thread got signal,
 *   it is not canceled.
 */
Cancellation behavior:
Thread may be canceled at start, if thread got signal,
it is not canceled.
Cancellation behavior : Thread may be canceled at start if thread got signal it is not canceled .
int
__thr_sigtimedwait(const sigset_t *set, siginfo_t *info,
    const struct timespec * timeout)
{
	struct pthread	*curthread = _get_curthread();
	sigset_t newset;
	int ret;
	_thr_cancel_enter(curthread);
	ret = __sys_sigtimedwait(thr_remove_thr_signals(set, &newset), info,
	    timeout);
	_thr_cancel_leave(curthread, (ret == -1));
	return (ret);
}
int __thr_sigtimedwait ( const sigset_t * set , siginfo_t * info , const struct timespec * timeout ) { struct pthread * curthread = _get_curthread ( ) ; sigset_t newset ; int ret ; _thr_cancel_enter ( curthread ) ; ret = __sys_sigtimedwait ( thr_remove_thr_signals ( set , & newset ) , info , timeout ) ; _thr_cancel_leave ( curthread , ( ret == -1 ) ) ; return ( ret ) ; }
Cancellation behavior:
   Thread may be canceled at start, if thread got signal,
   it is not canceled.
Cancellation behavior : Thread may be canceled at start if thread got signal it is not canceled .