Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Dec 2016 05:24:51 +0000 (UTC)
From:      Julian Elischer <julian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r309383 - stable/10/sys/kern
Message-ID:  <201612020524.uB25OpVd028721@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: julian
Date: Fri Dec  2 05:24:51 2016
New Revision: 309383
URL: https://svnweb.freebsd.org/changeset/base/309383

Log:
  MFH: r306306
  
  Give the user a clue as to which process hit maxfiles.
  
  Sponsored by:	Panzura

Modified:
  stable/10/sys/kern/kern_descrip.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/kern_descrip.c
==============================================================================
--- stable/10/sys/kern/kern_descrip.c	Fri Dec  2 01:52:32 2016	(r309382)
+++ stable/10/sys/kern/kern_descrip.c	Fri Dec  2 05:24:51 2016	(r309383)
@@ -1780,8 +1780,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?201612020524.uB25OpVd028721>