From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 2 10:37:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8ED85106564A for ; Tue, 2 Dec 2008 10:37:41 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 277E08FC0A for ; Tue, 2 Dec 2008 10:37:41 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=ZQSgXuMAmB4nZbqBHeTzrqUjhokWbnqG9ig9whOIH5vvvrObmee0Fz/Be+TTyZOBEtU3oBmJbUAcNgCwLNtgJOHDSw20UcNp/SoTeRmTot78nGDGCwS7QP0Zwf8FfQAUX7GKUX9SZa8aA/L0cvIqaiwf4Stfz810Ov41BxmnEf8=; Received: from shadow.codelabs.ru (shadow.codelabs.ru [144.206.177.8]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1L7SdN-000ODV-Nu; Tue, 02 Dec 2008 13:37:37 +0300 Date: Tue, 2 Dec 2008 13:37:36 +0300 From: Eygene Ryabinkin To: Maslan Message-ID: References: <319cceca0812020153y6cde7b0ara2cff1d1b0525e10@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8vCeF2GUdMpe9ZbK" Content-Disposition: inline In-Reply-To: <319cceca0812020153y6cde7b0ara2cff1d1b0525e10@mail.gmail.com> Sender: rea-fbsd@codelabs.ru Cc: FreeBSD Hackers Subject: Re: Controlling a process X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2008 10:37:41 -0000 --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--