History

always flush stderr in log

Spencer Salazar committed 8 years ago

Commit e98dbf11 parent f0e72991 file · +1 −1Browse files

Showing the changes to src/core/chuck_errmsg.cpp (1 of 1 file). Show all

Unified · Split

src/core/chuck_errmsg.cpp+1−1
@@ -126,13 +126,13 @@ void ck_fflush_stdout() · 125 unmodified lines
126126 void ck_fflush_stderr()
127127 {
128128 // check if stream contains a newline
129− if( g_stderr_stream.str().find( '\n' ) != std::string::npos )
130129 {
131130 // if so, print it
132131 if( g_stderr_callback == NULL )
133132 {
134133 // send to stderr
135134 fprintf( stderr, "%s", g_stderr_stream.str().c_str() );
135+ fflush( stderr );
136136 }
137137 else
138138 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t