waiting for a child process to finish execution in C
hi,
I have forked a child process from my main process. I want my main pgm to wait till the child finishes execution. I thought of using wait_pid() function in wait.h. But an error is comming
undefined reference to `wait_pid'.
If i am using this wait_pid(), where should i write this, before fork() or after fork()?
I want to know how to use this wait_pid() function. If there is any other way to wait for the completion of the child process please tell me that also
thanks and regards
cynthia
|