Skip to content

Commit

Permalink
Explicitly set pgid and sid of init process
Browse files Browse the repository at this point in the history
Explicitly set pgid and sid of init process to 1.

Signed-off-by: Sukadev Bhattiprolu <[email protected]>
Cc: Cedric Le Goater <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: Eric Biederman <[email protected]>
Cc: Herbert Poetzl <[email protected]>
Cc: <[email protected]>
Acked-by: Eric W. Biederman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Sukadev Bhattiprolu authored and Linus Torvalds committed May 11, 2007
1 parent 820e45d commit 0e29b24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@ static int __init kernel_init(void * unused)
*/
init_pid_ns.child_reaper = current;

__set_special_pids(1, 1);
cad_pid = task_pid(current);

smp_prepare_cpus(max_cpus);
Expand Down

0 comments on commit 0e29b24

Please sign in to comment.