Quote:
Originally Posted by smeezekitty
But maybe its better to wait for the child to finish before your read the output?
|
In the fork/pipe solution the parent blocks read function until something come out from child, and usually this happens right before the child exiting, I think it suffices to handle situation like this.