Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Dec 2016 05:25:33 +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-11@freebsd.org
Subject:   svn commit: r309384 - stable/11/sys/kern
Message-ID:  <201612020525.uB25PXut028830@repo.freebsd.org>

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



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