diff options
author | julian <julian@FreeBSD.org> | 2016-12-02 05:24:51 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2016-12-02 05:24:51 +0000 |
commit | 2d49c3c14cb4955dab0f60b6a0df84b85253a0c5 (patch) | |
tree | 0885f8b48b7d218a63aacf413dc98fb606a30c91 /sys/kern | |
parent | 324de30152c34a24562b97cd00eb1b7cdab30719 (diff) | |
download | FreeBSD-src-2d49c3c14cb4955dab0f60b6a0df84b85253a0c5.zip FreeBSD-src-2d49c3c14cb4955dab0f60b6a0df84b85253a0c5.tar.gz |
MFH: r306306
Give the user a clue as to which process hit maxfiles.
Sponsored by: Panzura
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_descrip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 24381a9..0090391 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1780,8 +1780,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); } |