summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-12-20 18:30:58 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-12-20 18:30:58 +0000
commite9a7c303fcaf5ac2b882e76c5f3e98a1115a7836 (patch)
tree464ca6b7ae546e973036945784e5edcef3f4008e
parent1f533dfc2fc1139c682914645dd96573d3c8cab9 (diff)
(new_proc): Don't set P->p_noowner for processes 0 and 1.
-rw-r--r--proc/mgt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index 7f9e5f3c..0842a213 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -500,6 +500,7 @@ new_proc (task_t task)
p->p_ochild = p;
p->p_loginleader = 1;
p->p_parentset = 1;
+ p->p_noowner = 0;
}
else if (p->p_pid == 1)
{
@@ -515,6 +516,7 @@ new_proc (task_t task)
p->p_loginleader = 1;
p->p_ochild = 0;
p->p_parentset = 1;
+ p->p_noowner = 0;
}
else
{
@@ -532,6 +534,7 @@ new_proc (task_t task)
p->p_loginleader = 0;
p->p_ochild = 0;
p->p_parentset = 0;
+ p->p_noowner = 1;
}
if (p->p_pid < 2)
@@ -553,7 +556,6 @@ new_proc (task_t task)
p->p_deadmsg = (p->p_pid == 1);
p->p_checkmsghangs = 0;
p->p_msgportwait = 0;
- p->p_noowner = 1;
if (p->p_pid > 1)
{