Give the user a clue as to which process hit maxfiles.
MFC after: 1 week Sponsored by: Panzura
This commit is contained in:
parent
67747e91f9
commit
35bdd4b3f9
@ -1761,8 +1761,8 @@ falloc_noinstall(struct thread *td, struct file **resultfp)
|
||||
priv_check(td, PRIV_MAXFILES) != 0) ||
|
||||
openfiles >= maxfiles) {
|
||||
if (ppsratecheck(&lastfail, &curfail, 1)) {
|
||||
printf("kern.maxfiles limit exceeded by uid %i, "
|
||||
"please see tuning(7).\n", td->td_ucred->cr_ruid);
|
||||
printf("kern.maxfiles limit exceeded by uid %i, (%s) "
|
||||
"please see tuning(7).\n", td->td_ucred->cr_ruid, td->td_proc->p_comm);
|
||||
}
|
||||
return (ENFILE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user