Controlling a process
Maslan
maslanbsd at gmail.com
Tue Dec 2 23:42:41 PST 2008
setrlimit(2)
Ok thanks a lot
On Tue, Dec 2, 2008 at 10:37 AM, Eygene Ryabinkin <rea-fbsd at codelabs.ru> wrote:
> Maslan, good day.
>
> Tue, Dec 02, 2008 at 09:53:09AM +0000, Maslan wrote:
>> 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.
>
> man 2 setrlimit
>
>> Finally, i would like to know the exit status of the process or the
>> signal that killed it (sigfault, .....)
>
> If you're spawning the process in question, then 'man 2 wait'.
> --
> Eygene
> _ ___ _.--. #
> \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard
> / ' ` , __.--' # to read the on-line manual
> )/' _/ \ `-_, / # while single-stepping the kernel.
> `-'" `"\_ ,_.-;_.-\_ ', fsc/as #
> _.-'_./ {_.' ; / # -- FreeBSD Developers handbook
> {_.-``-' {_/ #
>
--
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