In kern_wait(), let the compiler copy the rusage structure rather than

an explicit bcopy() -- it probably does a better job.
This commit is contained in:
rwatson 2005-01-08 04:17:48 +00:00
parent 2cb19e50a9
commit 7e8092f67c

View File

@ -610,7 +610,7 @@ kern_wait(struct thread *td, pid_t pid, int *status, int options,
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);
}