disable buffering to stdout/stderr: ensures that printf output appears immediately without explicit fflush()

git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@398 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
Patrick Ohly 2007-10-04 20:46:42 +00:00
parent fd5a416b70
commit 691090fbcc
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ int main( int argc, char **argv )
LOG.reset();
LOG.setLevel(LOG_LEVEL_INFO);
resetError();
setvbuf(stderr, NULL, _IONBF, 0);
setvbuf(stdout, NULL, _IONBF, 0);
// Expand PATH to cover the directory we were started from?
// This might be needed to find normalize_vcard.