waiting for the child processes