* still existing or has died without giving us due notice. if the
* latter is the case, then also exit this process
*
- * check by calling "ps -p PID", where PID is the pid of the
- * parent. if the return value is non-null, then ps couldn't find out
+ * check by calling "kill(PID,0)", where PID is the pid of the
+ * parent. if the return value is non-null, then kill couldn't find out
* about the parent process, so it is apparently gone
*/
extern "C"
* still existing or has died without giving us due notice. if the
* latter is the case, then also exit this process
*
- * check by calling "ps -p PID", where PID is the pid of the
- * parent. if the return value is non-null, then ps couldn't find out
- * about the parent process, so it is apparently gone
+ * check by calling "kill(PID,0)", where PID is the pid of the
+ * parent. if the return value is non-null, then kill couldn't find
+ * out about the process, so it is apparently gone
*/
extern "C"
void monitor_child_liveness (const pid_t child_pid)
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams