diff options
author | jh <jh@FreeBSD.org> | 2013-04-19 15:19:29 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2013-04-19 15:19:29 +0000 |
commit | f9bfc0cc7f64fd5623a5ada03f1f6fdbd0f4ff2c (patch) | |
tree | befae6fd97efce8b325107a4c14ff33a249e0a40 /sys/kern | |
parent | b991db2beb3c9980e40aa333fe932ba017cf75fd (diff) | |
download | FreeBSD-src-f9bfc0cc7f64fd5623a5ada03f1f6fdbd0f4ff2c.zip FreeBSD-src-f9bfc0cc7f64fd5623a5ada03f1f6fdbd0f4ff2c.tar.gz |
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
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index b5a4934..741665f 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -930,8 +930,8 @@ fork1(struct thread *td, int flags, int pages, struct proc **procp, 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); |