How do you start your processes? If they are started in the background, then the child could return without waiting for the process to complete. Also, if your process terminated before creating the file to publich, then, of course, there would be nothing to publish.
Comment on Re: fork exits prematurely leaving zombies
thanks for your reply. sorry for not being clear earlier. the processes A and B are two additional perl scripts being run. And process C is a C-program. All of them are essentially running in background. Somehow i dont see the early exit at all times, but about 50% of the time.
Any other ways I could wait till a background process is complete.