* interp.c (sim_monitor): Flush stdout and stderr file descriptors