Date: Fri, 10 May 2013 00:12:14 +0200 From: Oliver Pinter <oliver.pntr@gmail.com> To: hiren@freebsd.org Cc: freebsd-bugs@freebsd.org Subject: Re: kern/176579: [kernel] [patch] add td_name to maxproc limit warning Message-ID: <CAPjTQNEiWM48H_NTVd%2BrXXJeNP=B2XcoPO--FF5eHxtSV-Oy7w@mail.gmail.com> In-Reply-To: <201305070523.r475NvAV047330@freefall.freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] updated patch, and added td_name to one more place On 5/7/13, hiren@freebsd.org <hiren@freebsd.org> wrote: > Synopsis: [kernel] [patch] add td_name to maxproc limit warning > > Responsible-Changed-From-To: freebsd-bugs->hiren > Responsible-Changed-By: hiren > Responsible-Changed-When: Tue May 7 05:23:37 UTC 2013 > Responsible-Changed-Why: > Grab. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=176579 > _______________________________________________ > freebsd-bugs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-bugs > To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org" > [-- Attachment #2 --] commit 755192136c21798d3ac73d0b92b8c4eeb1e93a45 Author: Oliver Pinter <oliver.pntr@gmail.com> Date: Fri Mar 1 16:04:07 2013 +0100 added td_name to kern.maxfiles limits warning Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com> diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index eb6278d..b787812 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1667,8 +1667,9 @@ falloc_noinstall(struct thread *td, struct file **resultfp) priv_check(td, PRIV_MAXFILES) != 0) || openfiles >= maxfiles) { if (ppsratecheck(&lastfail, &curfail, 1)) { - printf("kern.maxfiles limit exceeded by uid %i, " - "please see tuning(7).\n", td->td_ucred->cr_ruid); + printf("kern.maxfiles limit exceeded by uid %i " + "td_name %s, please see tuning(7).\n", + td->td_ucred->cr_ruid, td->td_name); } return (ENFILE); } [-- Attachment #3 --] commit 860390bf190372c50f8904f006f39c6aa1bdd8ab Author: Oliver Pinter <oliver.pntr@gmail.com> Date: Fri Mar 1 16:08:38 2013 +0100 added td_name to maxproc limits warning diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 9af4a04..db5eabc 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -929,8 +929,9 @@ 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);help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPjTQNEiWM48H_NTVd%2BrXXJeNP=B2XcoPO--FF5eHxtSV-Oy7w>
