Date: Tue, 2 Dec 2008 13:37:36 +0300 From: Eygene Ryabinkin <rea-fbsd@codelabs.ru> To: Maslan <maslanbsd@gmail.com> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: Controlling a process Message-ID: <j2Y/1ERA%2BpTg5cUUXFtkn4Voee8@qm7gbYKMPO53E/nl%2BD5eD8YyL1A> In-Reply-To: <319cceca0812020153y6cde7b0ara2cff1d1b0525e10@mail.gmail.com> References: <319cceca0812020153y6cde7b0ara2cff1d1b0525e10@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--8vCeF2GUdMpe9ZbK
Content-Type: text/plain; charset=koi8-r
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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'.
--=20
Eygene
_ ___ _.--. #
\`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard
/ ' ` , __.--' # to read the on-line manual =20
)/' _/ \ `-_, / # while single-stepping the kernel.
`-'" `"\_ ,_.-;_.-\_ ', fsc/as #
_.-'_./ {_.' ; / # -- FreeBSD Developers handbook=20
{_.-``-' {_/ #
--8vCeF2GUdMpe9ZbK
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
iEYEARECAAYFAkk1D+8ACgkQthUKNsbL7Yj/IQCgnj2VojFBm1zMEzC9/zdB+jmc
68AAn1xJAU8ykZydHsAsaNq2npbRuOy2
=64RD
-----END PGP SIGNATURE-----
--8vCeF2GUdMpe9ZbK--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?j2Y/1ERA%2BpTg5cUUXFtkn4Voee8>
