Author: julian Date: Fri Dec 2 05:25:32 2016 New Revision: 309384 URL: https://svnweb.freebsd.org/changeset/base/309384
Log: MFH: r306306 Give the user a clue as to which process hit maxfiles. Sponsored by: Panzura Modified: stable/11/sys/kern/kern_descrip.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/kern/kern_descrip.c ============================================================================== --- stable/11/sys/kern/kern_descrip.c Fri Dec 2 05:24:51 2016 (r309383) +++ stable/11/sys/kern/kern_descrip.c Fri Dec 2 05:25:32 2016 (r309384) @@ -1758,8 +1758,8 @@ falloc_noinstall(struct thread *td, stru 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); } _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"