SyntaxFix
Write A Post
Hire A Developer
Questions
Put your wait() function in a loop and wait for all the child processes. The wait function will return -1 and errno will be equal to ECHILD if no more child processes are available.