diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2012-11-25 22:24:19 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-05 10:16:35 -0700 |
commit | 1c190534db77a019936d95a1826a55bf34d7ed23 (patch) | |
tree | 0a74373ff0ba209f3d81ddb82286f18b3685d07c /include | |
parent | 555a5d61f1623a0fa7aa012be0c4b24873c17991 (diff) |
signal: Define __ARCH_HAS_SA_RESTORER so we know whether to clear sa_restorer
Vaguely based on upstream commit 574c4866e33d 'consolidate kernel-side
struct sigaction declarations'.
flush_signal_handlers() needs to know whether sigaction::sa_restorer
is defined, not whether SA_RESTORER is defined. Define the
__ARCH_HAS_SA_RESTORER macro to indicate this.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/signal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-generic/signal.h b/include/asm-generic/signal.h index 555c0aee8a4..743f7a5dc9a 100644 --- a/include/asm-generic/signal.h +++ b/include/asm-generic/signal.h @@ -99,6 +99,10 @@ typedef unsigned long old_sigset_t; #include <asm-generic/signal-defs.h> +#ifdef SA_RESTORER +#define __ARCH_HAS_SA_RESTORER +#endif + struct sigaction { __sighandler_t sa_handler; unsigned long sa_flags; |