Subject: [PATCH] Setup the initial session group inside a private namespace properly. From: Eric W. Biederman Date: 1129494286 -0600 --- kernel/fork.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 8e3a866bbb99c0683dcb4459c343e7db854d508e diff --git a/kernel/fork.c b/kernel/fork.c index 23dd98a..e6d81ed 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1153,8 +1153,8 @@ static task_t *copy_process(unsigned lon /* Free the pid in the wrong process space */ free_pidmap(current->pspace, pid, 1); pid = 0; - /* Become the process group and session leader */ - p->signal->leader = 1; /* FIXME Is this correct? */ + /* Allocate new session and process groups */ + p->signal->leader = 0; p->signal->pgrp = p->pid; p->signal->session = p->pid; p->signal->tty = NULL; -- 1.0.GIT