Controlling a process
Eygene Ryabinkin
rea-fbsd at codelabs.ru
Tue Dec 2 02:37:41 PST 2008
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
{_.-``-' {_/ #
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20081202/459e0e21/attachment.pgp
More information about the freebsd-hackers
mailing list