[Midnightbsd-cvs] src [9365] trunk/sys/kern/kern_fork.c: Include PID in the error message which is printed when the maxproc limit
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Mar 4 14:50:51 EST 2017
Revision: 9365
http://svnweb.midnightbsd.org/src/?rev=9365
Author: laffer1
Date: 2017-03-04 14:50:51 -0500 (Sat, 04 Mar 2017)
Log Message:
-----------
Include PID in the error message which is printed when the maxproc limit
is exceeded. Improve formatting of the message while here.
Modified Paths:
--------------
trunk/sys/kern/kern_fork.c
Modified: trunk/sys/kern/kern_fork.c
===================================================================
--- trunk/sys/kern/kern_fork.c 2017-03-04 19:50:21 UTC (rev 9364)
+++ trunk/sys/kern/kern_fork.c 2017-03-04 19:50:51 UTC (rev 9365)
@@ -929,8 +929,8 @@
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);
More information about the Midnightbsd-cvs
mailing list