Hello everyone!
I have to complete a project for school about Unix programming.
I have to create some forked child-processes and each one of them has to start a shell.
What the project asks is to check if any of the child processes (the shells) is terminated while the father is still running and, if so, restart it.
How do i check if the process is closed and how do i restart it?
Thank you very much in advance :-)