uml: flush stdout before forking