diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2003-05-13 20:36:02 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2003-05-13 20:36:02 +0000 |
| commit | 90af4afacb3d76aba2261a2dba4a1c5f69670a19 (patch) | |
| tree | 0e2ba79e40f08e96bb98756b67576ff96caccfbc /sys/vm/vm_glue.c | |
| parent | 3ecb3802eeb415f4837f7e0af26c584a333018d2 (diff) | |
Notes
Diffstat (limited to 'sys/vm/vm_glue.c')
| -rw-r--r-- | sys/vm/vm_glue.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index cd00c3345c26..3c42ccae5e72 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -441,23 +441,14 @@ vm_forkproc(td, p2, td2, flags) /* XXXKSE this is unsatisfactory but should be adequate */ up = p2->p_uarea; + MPASS(p2->p_sigacts != NULL); /* * p_stats currently points at fields in the user struct * but not at &u, instead at p_addr. Copy parts of * p_stats; zero the rest of p_stats (statistics). - * - * If procsig->ps_refcnt is 1 and p2->p_sigacts is NULL we dont' need - * to share sigacts, so we use the up->u_sigacts. */ p2->p_stats = &up->u_stats; - if (p2->p_sigacts == NULL) { - if (p2->p_procsig->ps_refcnt != 1) - printf ("PID:%d NULL sigacts with refcnt not 1!\n",p2->p_pid); - p2->p_sigacts = &up->u_sigacts; - up->u_sigacts = *p1->p_sigacts; - } - bzero(&up->u_stats.pstat_startzero, (unsigned) ((caddr_t) &up->u_stats.pstat_endzero - (caddr_t) &up->u_stats.pstat_startzero)); @@ -465,7 +456,6 @@ vm_forkproc(td, p2, td2, flags) ((caddr_t) &up->u_stats.pstat_endcopy - (caddr_t) &up->u_stats.pstat_startcopy)); - /* * cpu_fork will copy and update the pcb, set up the kernel stack, * and make the child ready to run. |
