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.
views:
27answers:
1
+4
A:
It means that the programmer is not interested in getting child exit code. (int*)0
means NULL.
el.pescado
2010-05-03 12:32:22
@el.pescado: Thank you :)
Supereme
2010-05-04 16:43:59