Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/os/freebsd/spl/sys/sig.h
Show All 23 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _OPENSOLARIS_SYS_SIG_H_ | #ifndef _OPENSOLARIS_SYS_SIG_H_ | ||||
#define _OPENSOLARIS_SYS_SIG_H_ | #define _OPENSOLARIS_SYS_SIG_H_ | ||||
#ifndef _STANDALONE | |||||
#include_next <sys/signal.h> | #include_next <sys/signal.h> | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/lock.h> | #include <sys/lock.h> | ||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/signalvar.h> | #include <sys/signalvar.h> | ||||
#include <sys/debug.h> | #include <sys/debug.h> | ||||
Show All 17 Lines | if (SIGPENDING(td)) { | ||||
sig = cursig(td); | sig = cursig(td); | ||||
mtx_unlock(&p->p_sigacts->ps_mtx); | mtx_unlock(&p->p_sigacts->ps_mtx); | ||||
PROC_UNLOCK(p); | PROC_UNLOCK(p); | ||||
if (sig != 0) | if (sig != 0) | ||||
return (1); | return (1); | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
#endif /* !_STANDALONE */ | |||||
#endif /* _OPENSOLARIS_SYS_SIG_H_ */ | #endif /* _OPENSOLARIS_SYS_SIG_H_ */ |