summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-08-06 22:51:17 +0000
committerRoland McGrath <roland@gnu.org>2001-08-06 22:51:17 +0000
commitfd4bb88b241a1b8563911c56977a798181fce837 (patch)
tree550dbd676238fe28161119c07b4cbaacdfe923b8 /proc
parent2594b18235a995260be7bf5553c3e09f5d0de39b (diff)
2001-08-06 Roland McGrath <roland@frob.com>
* mgt.c (allocate_proc): Don't zero P->p_pi. Reported by Neal H Walfield <neal@cs.uml.edu>.
Diffstat (limited to 'proc')
-rw-r--r--proc/mgt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index c6e045a1..807a2d5b 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -555,7 +555,7 @@ allocate_proc (task_t task)
if (err)
return NULL;
- memset (p, 0, sizeof *p);
+ memset (&p->p_pi + 1, 0, sizeof *p - sizeof p->p_pi);
p->p_task = task;
p->p_msgport = MACH_PORT_NULL;