diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-02-20 08:21:00 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-02-20 08:21:00 +0000 |
commit | 9ac3b31e3970a0b089d3c8de481f6189444f2b50 (patch) | |
tree | bfe4070767624f10872da9211977dba8b6f4505b /sys | |
parent | 8485f8d2aa04ef808e8808b606d6f4c6ee0363a1 (diff) |
In signal_pending_state() only test for pending signal when
TASK_INTERRUPTIBLE (PCATCH) is set in the state argument.
Spotted by and original diff from claudio@. ok claudio@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/include/linux/sched/signal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/include/linux/sched/signal.h b/sys/dev/pci/drm/include/linux/sched/signal.h index 3eb6d900800..c201146f159 100644 --- a/sys/dev/pci/drm/include/linux/sched/signal.h +++ b/sys/dev/pci/drm/include/linux/sched/signal.h @@ -6,7 +6,8 @@ #include <sys/systm.h> #include <sys/signalvar.h> -#define signal_pending_state(x, y) SIGPENDING(curproc) +#define signal_pending_state(s, x) \ + ((s) & TASK_INTERRUPTIBLE ? SIGPENDING(curproc) : 0) #define signal_pending(y) SIGPENDING(curproc) #endif |