Re:Show HN: Pact, a simple utility that kills all procs give...
by hmpc on Friday January 22, 2016 @05:49AM
(#10951987)
This is the service supervision approach, which is indeed the best, avoiding race conditions and nasty polling. If you really must monitor processes which you cannot parent, at least under Linux you can do this using ptrace to sort-of-reparent the processes (as long as you have CAP_SYS_PTRACE or your ptrace scope is set to 0 in Yama), with waitpid to monitor all of them.
[ Parent
| on HN ]
There are no comments on this comment yet.