diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-10-11 23:38:17 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-10-11 23:38:17 +0000 |
| commit | bd78cece5df2063d2e852bd6c895e05385eea931 (patch) | |
| tree | d3ca87a8ac917d5003235cc737cd5f76591f7c1b /sys/kern/kern_fork.c | |
| parent | 698166ca554d6cba78cd1728268fa03091697973 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_fork.c')
| -rw-r--r-- | sys/kern/kern_fork.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index f5ae42cf3ec6..592ff4412708 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -471,8 +471,7 @@ again: * We start off holding one spinlock after fork: sched_lock. */ PROC_LOCK(p1); - crhold(p1->p_ucred); - p2->p_ucred = p1->p_ucred; + p2->p_ucred = crhold(p1->p_ucred); if (p2->p_args) p2->p_args->ar_ref++; |
