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:
Robert Watson 2005-01-08 04:17:48 +00:00
parent bda32c8604
commit fd544ee8f7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139893

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);
}