Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2013 21:11:33 GMT
From:      Oliver Pinter <oliver.pntr@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/176579: add td_name to maxproc limit warning
Message-ID:  <201302282111.r1SLBXDf047376@red.freebsd.org>
Resent-Message-ID: <201302282120.r1SLK0hs062604@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176579
>Category:       kern
>Synopsis:       add td_name to maxproc limit warning
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 28 21:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Pinter
>Release:        FreeBSD 9-STABLE
>Organization:
>Environment:
FreeBSD opn 9.1-STABLE FreeBSD 9.1-STABLE #78 r247141+4367a00-dirty: Thu Feb 28 21:41:28 CET 2013     root@opn:/usr/obj/usr/src/sys/stable  amd64

>Description:

>How-To-Repeat:

>Fix:
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 9af4a04..d7e4936 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -929,8 +929,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 %i [td_name %s], please see tuning(7) and login.conf(5).\n",
+                   td->td_ucred->cr_ruid, td->td_name);
        sx_xunlock(&allproc_lock);
 #ifdef MAC
        mac_proc_destroy(newproc);

>Release-Note:
>Audit-Trail:
>Unformatted:



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