Suppose I have an application that needs to run child processes forever, and would only exit on an error. (Say processes are named Q1 and Q2).
Q1 and Q2 are supposed to run forever. However, they may get terminated on an Error. In this case, the main process should restart the terminated process only.
How could I look for any terminated processes and restart them, without any blocking?
Other references 1.