Date: Mon, 04 Feb 2002 10:11:45 +0300 From: "Magdalinin Kirill" <bsdforumen@hotmail.com> To: freebsd-hackers@freebsd.org Subject: how to count number of user process? Message-ID: <F138HPpom66BwcmL4DO0001d05d@hotmail.com>
next in thread | raw e-mail | index | archive | help
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? 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F138HPpom66BwcmL4DO0001d05d>