Renumber the flags that go in sig->flags giving different groups of flags different hex digits. This is needed so that future additions of flags can be adjacent. Signed-off-by: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> --- include/linux/sched/signal.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/include/linux/sched/signal.h b/include/linux/sched/signal.h index 0ee5e696c5d8..b4f36a11be5e 100644 --- a/include/linux/sched/signal.h +++ b/include/linux/sched/signal.h @@ -241,20 +241,22 @@ struct signal_struct { */ #define SIGNAL_STOP_STOPPED 0x00000001 /* job control stop in effect */ #define SIGNAL_STOP_CONTINUED 0x00000002 /* SIGCONT since WCONTINUED reap */ -#define SIGNAL_GROUP_EXIT 0x00000004 /* group exit in progress */ -#define SIGNAL_GROUP_COREDUMP 0x00000008 /* coredump in progress */ -/* - * Pending notifications to parent. - */ + +/* Pending notifications to parent. */ #define SIGNAL_CLD_STOPPED 0x00000010 #define SIGNAL_CLD_CONTINUED 0x00000020 #define SIGNAL_CLD_MASK (SIGNAL_CLD_STOPPED|SIGNAL_CLD_CONTINUED) -#define SIGNAL_UNKILLABLE 0x00000040 /* for init: ignore fatal signals */ - #define SIGNAL_STOP_MASK (SIGNAL_CLD_MASK | SIGNAL_STOP_STOPPED | \ SIGNAL_STOP_CONTINUED) +/* Signal group actions. */ +#define SIGNAL_GROUP_EXIT 0x00000100 /* group exit in progress */ +#define SIGNAL_GROUP_COREDUMP 0x00000200 /* coredump in progress */ + +/* Flags applicable to the entire signal group. */ +#define SIGNAL_UNKILLABLE 0x00001000 /* for init: ignore fatal signals */ + static inline void signal_set_stop_flags(struct signal_struct *sig, unsigned int flags) { -- 2.20.1