can a child execute waitpid() and wait() in C, Unix

In Unix, C. After a fork(), usually followed by a wait() or waitpid() to wait the child terminate. But can the child execute the wait()? The child doesn’t have a _child_, so when it execute the wait(), what will happen?

Source: unix

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.