Showing the changes to src/core/chuck_errmsg.cpp (1 of 1 file). Show all
Unified · Split
| @@ -126,13 +126,13 @@ void ck_fflush_stdout() · 125 unmodified lines | ||
| 126 | 126 | void ck_fflush_stderr() |
| 127 | 127 | { |
| 128 | 128 | // check if stream contains a newline |
| 129 | − if( g_stderr_stream.str().find( '\n' ) != std::string::npos ) | |
| 130 | 129 | { |
| 131 | 130 | // if so, print it |
| 132 | 131 | if( g_stderr_callback == NULL ) |
| 133 | 132 | { |
| 134 | 133 | // send to stderr |
| 135 | 134 | fprintf( stderr, "%s", g_stderr_stream.str().c_str() ); |
| 135 | + fflush( stderr ); | |
| 136 | 136 | } |
| 137 | 137 | else |
| 138 | 138 | { |