in reply to Waiting for delayed output after system()
If you have control of the child's code, you should be able to make sure it finishes completly before returning from system by making sure it isn't doing anything in the background.
If you don't control the child's code, but know all of the process PIDs, you can wait for them to die off. Otherwise, you'll probably have to pick a method of polling (as the other monks here have mentioned).
|
|---|