Flush stdout immediately after a write.