Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Dec 2008 09:53:09 +0000
From:      Maslan <maslanbsd@gmail.com>
To:        "FreeBSD Hackers" <freebsd-hackers@freebsd.org>
Subject:   Controlling a process
Message-ID:  <319cceca0812020153y6cde7b0ara2cff1d1b0525e10@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?319cceca0812020153y6cde7b0ara2cff1d1b0525e10>