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 > [EMAIL PROTECTED] > > _________________________________________________________________ > Join the world’s largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message > > -- Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer phone: +7 (095) 796-9079, mailto: [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message