Controlling a process

Maslan maslanbsd at gmail.com
Tue Dec 2 02:25:05 PST 2008


Hi guys,

What is the best way to control a process (running in chroot env):
1- Execution time
2- Memory limit
And to be able to kill the process when it breaks this limits.

Finally, i would like to know the exit status of the process or the
signal that killed it (sigfault, .....)

The idea is that I'm developing a problem judge that runs FreeBSD
(something like www.spoj.pl or topcoder.com/tc)
Where every problem has a run-time and a memory limit.

Thanks a lot


-- 
System Programmer
--
I'm Searching For Perfection,
So Even If U Need Portability U've To Use Assembly ;-)
--
http://libosdk.berlios.de


More information about the freebsd-hackers mailing list