Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Sep 2016 22:56:14 +0000 (UTC)
From:      Julian Elischer <julian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306306 - head/sys/kern
Message-ID:  <201609242256.u8OMuEop008783@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609242256.u8OMuEop008783>