i tried with the waitpid() function, it takes three argument, while i implement a below
code , i had a some mistakes, instead of waitpid() function i use the wait() function
with the three argument. it work properly i don't how its working.
Any one can explain it??
But the syntax for the wait function is
pid_t wait(int *status);
As per the man page here, you need to include
<sys/wait.h> header files to use
waitpid()] which I am not seeing in your code.
It is very much likely that your compiler used some
implicit declaration of
wait() function, which, in case,
If you include the aforesaid header files and complie, your compiler should produce the warning regarding
too many arguments to function "wait"