After we learnt about running other program using exec, you may find one problem: the parent died before the child. We would like to suspend the parent and wake it after the child is terminated.
exec
In this section, you will learn:
wait system call
wait
waitpid system call
waitpid
Last updated 1 year ago