Hi,
I'm writing a process monitor on Linux. I've 2 questions:
1. How to detect if a process has crashed? Say, if a process hangs, will
it consume any more CPU time?
2. Is it possible to control the resource limits of a process A by, say,
process B (run as root)? It seems that the system calls setrlimit,
ulimit, etc do not take pid as an argument.
Thanks!
-David