svn commit: r250558 - stable/9/sys/kern

Jaakko Heinonen jh at FreeBSD.org
Wed May 15 04:10:24 UTC 2013


Author: jh
Date: Sun May 12 09:42:17 2013
New Revision: 250558
URL: http://svnweb.freebsd.org/changeset/base/250558

Log:
  MFC r249650:
  
  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

Modified:
  stable/9/sys/kern/kern_fork.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/kern_fork.c
==============================================================================
--- stable/9/sys/kern/kern_fork.c	Sun May 12 09:33:33 2013	(r250557)
+++ stable/9/sys/kern/kern_fork.c	Sun May 12 09:42:17 2013	(r250558)
@@ -929,8 +929,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);
_______________________________________________
svn-src-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"


More information about the svn-src-stable-9 mailing list