FreeBSD/sys/kern/subr_sleepqueue.c
/*
 * Check to see if we were awoken by a signal.
 */
Check to see if we were awoken by a signal.
Check to see if we were awoken by a signal .
static int
sleepq_check_signals(void)
{
	struct thread *td;
	td = curthread;
	THREAD_LOCK_ASSERT(td, MA_OWNED);
	if (td->td_flags & TDF_SINTR)
		td->td_flags &= ~TDF_SINTR;
	if (td->td_flags & TDF_SLEEPABORT) {
		td->td_flags &= ~TDF_SLEEPABORT;
		return (td->td_intrval);
	}
	return (0);
}
static int sleepq_check_signals ( void ) { struct thread * td ; td = curthread ; THREAD_LOCK_ASSERT ( td , MA_OWNED ) ; if ( td -> td_flags & TDF_SINTR ) td -> td_flags &= ~ TDF_SINTR ; if ( td -> td_flags & TDF_SLEEPABORT ) { td -> td_flags &= ~ TDF_SLEEPABORT ; return ( td -> td_intrval ) ; } return ( 0 ) ; }
Check to see if we were awoken by a signal.
Check to see if we were awoken by a signal .
/* We are no longer in an interruptible sleep. */