Dear all,
suppose that I start a process (named "father"). "father" starts in turns a process called "child" with an execv call (after a fork). In this way "father" will be notified if "chlid" crashes (SIGCHILD mechanism). The problem is:
if "father" crashes, how can I do to be recreate a mechanism like that of SIGCHILD when I restart a process that will substitute "father", say "father1"?
Anyway, I have previously stored the PID of the "child" process.
I was trying to change the PPID of "child", but it seems it doesn't work.
Could you help me?