Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Apr 2013 15:19:29 +0000 (UTC)
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r249650 - head/sys/kern
Message-ID:  <201304191519.r3JFJTXi076103@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jh
Date: Fri Apr 19 15:19:29 2013
New Revision: 249650
URL: http://svnweb.freebsd.org/changeset/base/249650

Log:
  Include PID in the error message which is printed when the maxproc limit
  is exceeded. Improve formatting of the message while here.
  
  PR:		kern/60550
  Submitted by:	Lowell Gilbert, bde

Modified:
  head/sys/kern/kern_fork.c

Modified: head/sys/kern/kern_fork.c
==============================================================================
--- head/sys/kern/kern_fork.c	Fri Apr 19 13:40:13 2013	(r249649)
+++ head/sys/kern/kern_fork.c	Fri Apr 19 15:19:29 2013	(r249650)
@@ -930,8 +930,8 @@ fork1(struct thread *td, int flags, int 
 fail:
 	sx_sunlock(&proctree_lock);
 	if (ppsratecheck(&lastfail, &curfail, 1))
-		printf("maxproc limit exceeded by uid %i, please see tuning(7) and login.conf(5).\n",
-		    td->td_ucred->cr_ruid);
+		printf("maxproc limit exceeded by uid %u (pid %d); see tuning(7) and login.conf(5)\n",
+		    td->td_ucred->cr_ruid, p1->p_pid);
 	sx_xunlock(&allproc_lock);
 #ifdef MAC
 	mac_proc_destroy(newproc);



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