what's the use of 0 in wait system call?

Posted by Supereme on Stack Overflow See other posts from Stack Overflow or by Supereme
Published on 2010-05-03T12:31:24Z Indexed on 2010/05/03 12:38 UTC
Read the original article Hit count: 172

Filed under:

Hi,
The syntax for the wait system call is pid= wait(&var) where pid is the process id of child and var is the variable which will contain the reason for exiting child.
But what happens when we use wait((int *)0)? What does it exactly mean?
Thank you.

© Stack Overflow or respective owner

Related posts about unix