Index: sys/kern/kern_acct.c =================================================================== --- sys/kern/kern_acct.c +++ sys/kern/kern_acct.c @@ -440,6 +440,10 @@ PROC_UNLOCK(p); lim_free(oldlim); + oldlim = td->td_limit; + td->td_limit = lim_hold(acct_limit); + lim_free(oldlim); + /* * Write the accounting information to the file. */