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:
parent
2cb19e50a9
commit
7e8092f67c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user