Linux

How the waitpid() is different from wait()?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

The waitpid() is a non-blocking version of the wait() function.

It also supports using library routine (e.g. system()) to wait a child process without messing up with other children processes for which the process has not waited.