kern/176579: add td_name to maxproc limit warning

Oliver Pinter oliver.pntr at gmail.com
Thu Feb 28 21:20:00 UTC 2013


>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 at 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:


More information about the freebsd-bugs mailing list