tags:

views:

27

answers:

1

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.

+4  A: 

It means that the programmer is not interested in getting child exit code. (int*)0 means NULL.

el.pescado
@el.pescado: Thank you :)
Supereme