Skip to contentSkip to conversation

Don't init pgrp and __session in INIT_SIGNALS

PATCH New [email protected] 1 participant 1 message Mar 21, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Don't init pgrp and __session in INIT_SIGNALS

From: Sukadev Bhattiprolu <[email protected]>
Subject: [PATCH] Don't init pgrp and __session in INIT_SIGNALS

Remove initialization of pgrp and __session in INIT_SIGNALS, as these are later set by the call to __set_special_pids() in init/main.c by the patch:

explicitly-set-pgid-and-sid-of-init-process.patch

Cc Cedric Le Goater <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Serge Hallyn <[email protected]>
Cc Eric Biederman <[email protected]>
Cc Oleg Nesterov <[email protected]>
---
 include/linux/init_task.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/init_task.h +2 -2
Index: lx26-21-rc3-mm2/include/linux/init_task.h
===================================================================
@@ -65,9 +65,9 @@
 	.posix_timers	 = LIST_HEAD_INIT(sig.posix_timers),		\
 	.cpu_timers	= INIT_CPU_TIMERS(sig.cpu_timers),		\
 	.rlim		= INIT_RLIMITS,					\
-	.pgrp		= 1,						\
+	.pgrp		= 0,						\
 	.tty_old_pgrp   = NULL,						\
-	{ .__session      = 1},						\
+	{ .__session      = 0},						\
 }
 
 extern struct nsproxy init_nsproxy;