Added a dedicated method to check for stdout/stderr writing from the C side.