Mercurial > hg > piper-cpp
comparison vamp-server/simple-server.cpp @ 262:853aeab95acf
Flush stdout before resuming output, otherwise buffered output may still appear
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 02 Oct 2018 11:56:46 +0100 |
parents | 8fd9da17f951 |
children | 776175b737ad |
comparison
equal
deleted
inserted
replaced
261:5cd830e77abf | 262:853aeab95acf |
---|---|
153 #endif | 153 #endif |
154 } | 154 } |
155 | 155 |
156 static void resumeOutput() | 156 static void resumeOutput() |
157 { | 157 { |
158 fflush(stdout); | |
158 #ifdef _WIN32 | 159 #ifdef _WIN32 |
159 _dup2(normalFd, 1); | 160 _dup2(normalFd, 1); |
160 #else | 161 #else |
161 dup2(normalFd, 1); | 162 dup2(normalFd, 1); |
162 #endif | 163 #endif |