svn commit: r306306 - head/sys/kern

Julian Elischer julian at FreeBSD.org
Sat Sep 24 22:56:15 UTC 2016


Author: julian
Date: Sat Sep 24 22:56:13 2016
New Revision: 306306
URL: https://svnweb.freebsd.org/changeset/base/306306

Log:
  Give the user a clue as to which process hit maxfiles.
  
  MFC after:	1 week
  Sponsored by:	Panzura

Modified:
  head/sys/kern/kern_descrip.c

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c	Sat Sep 24 21:40:24 2016	(r306305)
+++ head/sys/kern/kern_descrip.c	Sat Sep 24 22:56:13 2016	(r306306)
@@ -1761,8 +1761,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);
 	}


More information about the svn-src-all mailing list