So use lshell, which does the setrlimit() and exits, leaving the kernel
to deal with things. This should work. The code in kernel/sched.c
seems to properly terminate a process which has exceeded its CPU
limit. The code in mm/mmap.c and mm/mremap.c seem to properly enforce
memory limits. If you think there is a kernel bug, post some code
that can exceed its resource limits. If you don't think there is a
kernel bug, move to comp.os.linux.setup or someplace else
non-kernel-related.
man 2 setrlimit for more info.
lshell is in ftp://sunsite.unc.edu/pub/Linux/system/Admin/login/.
Cordially,
Sumner