is there a way for a forked child to examine another forked child so that, if the other forked child takes more time than usual to perform its chores, the first child may perform predefined steps?
if so, sample code will be greatly appreciated.
is there a way for a forked child to examine another forked child so
Share
Yes. Simply fork the process to be watched, from the process to watch it.
To emphasise: There are 3 processes. The original, the watcher process (that handles timeout etc.) and the actual watched process.