Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 2008 07:42:38 +0000
From:      Maslan <maslanbsd@gmail.com>
To:        "Eygene Ryabinkin" <rea-fbsd@codelabs.ru>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Controlling a process
Message-ID:  <319cceca0812022342p5727d2e2n14dd52e54455a870@mail.gmail.com>
In-Reply-To: <j2Y/1ERA%2BpTg5cUUXFtkn4Voee8@qm7gbYKMPO53E/nl%2BD5eD8YyL1A>
References:  <319cceca0812020153y6cde7b0ara2cff1d1b0525e10@mail.gmail.com> <j2Y/1ERA%2BpTg5cUUXFtkn4Voee8@qm7gbYKMPO53E/nl%2BD5eD8YyL1A>

next in thread | previous in thread | raw e-mail | index | archive | help
setrlimit(2)

Ok thanks a lot

On Tue, Dec 2, 2008 at 10:37 AM, Eygene Ryabinkin <rea-fbsd@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



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