How does Waitpid work?

Alvin Le

Member
How does Waitpid work?
Answer
If pid is greater than 0, waitpid() waits
for termination of the specific child whose process ID is equal to pid. If pid is equal to zero, waitpid() waits for termination of any child whose process group ID is equal to that of the caller.
 

Tìm kiếm

Back
Top