Add an XXX comment noting that getrusage() accesses p_stats->p_ru

and p_stats->p_cru without holding the appropriate locks.
This commit is contained in:
Tim J. Robbins 2003-02-13 09:53:59 +00:00
parent 9412f79eaa
commit 5ce623b8e0

View File

@ -806,6 +806,7 @@ getrusage(td, uap)
}
mtx_unlock(&Giant);
if (error == 0) {
/* XXX Unlocked access to p_stats->p_ru or p_cru. */
error = copyout(rup, uap->rusage, sizeof (struct rusage));
}
return(error);