Flush output to allow pipes to work