diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-01-08 04:17:48 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-01-08 04:17:48 +0000 |
commit | 79b283cecc01f36b072564bc298d880978be180e (patch) | |
tree | a214e1598af3ff77d1a14d862e922a6beb24cfb3 /sys/kern/kern_exit.c | |
parent | 3969b24d310a8658d04b143d96e9ae0703975cc8 (diff) | |
download | FreeBSD-src-79b283cecc01f36b072564bc298d880978be180e.zip FreeBSD-src-79b283cecc01f36b072564bc298d880978be180e.tar.gz |
In kern_wait(), let the compiler copy the rusage structure rather than
an explicit bcopy() -- it probably does a better job.
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index e46acdb..a52464e 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -610,7 +610,7 @@ loop: if (status) *status = p->p_xstat; /* convert to int */ if (rusage) { - bcopy(p->p_ru, rusage, sizeof(struct rusage)); + *rusage = *p->p_ru; calcru(p, &rusage->ru_utime, &rusage->ru_stime); } |