[so2] [PATCH] Hello there,

Alexandru Goia goia.i.alexandru at gmail.com
Sat Apr 17 00:57:12 EEST 2021


From: Alexandru GOIA <goia.i.alexandru at gmail.com>

First, add a field to task_struct named unix_deadly_signals,
that is 0 or 1, for ignoring SIGKILL and SIGSTOP.

Signed-off-by: Alexandru GOIA <goia.i.alexandru at gmail.com>
---
 include/linux/sched.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index ef00bb22164c..be4604208608 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1377,6 +1377,8 @@ struct task_struct {
 	 */
 	randomized_struct_fields_end
 
+	int unix_deadly_signals;
+
 	/* CPU-specific state of this task: */
 	struct thread_struct		thread;
 
-- 
2.20.1



More information about the so2 mailing list