Date: Mon, 4 Feb 2002 10:53:48 +0300 (MSK) From: Maxim Konovalov <maxim@macomnet.ru> To: Magdalinin Kirill <bsdforumen@hotmail.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: how to count number of user process? Message-ID: <20020204105308.L66803-100000@news1.macomnet.ru> In-Reply-To: <F138HPpom66BwcmL4DO0001d05d@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10:11+0300, Feb 4, 2002, Magdalinin Kirill wrote: > Hello, > > can anyone give an idea of C code on how to quickly count > the number of processes for a given user? I want to patch > Apache in order to prevent it from forking new process > over user's maxproc limit (while running suexec). > > Should I look at ps(1) source code or there are some > other examples? take a look at src/usr.bin/killall/killall.c > thanks, > > Kirill Magdalinin > bsdforumen@hotmail.com > > _________________________________________________________________ > Join the world’s largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > > -- Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020204105308.L66803-100000>