e_main: make sure to be unbuffered for stderr also 41/214241/2
authorJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 19 Sep 2019 07:13:00 +0000 (16:13 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 19 Sep 2019 07:27:44 +0000 (16:27 +0900)
The stream  stderr  is unbuffered as a default. but make sure to be unbuffered
just in case printf redirection in runtime.

Change-Id: I451ecbcc2590539079c482f83c239bd3dd2b5641

src/bin/e_main.c

index 3340cc5b3c385021b73de62430a40d98479245cf..23f5e9d547707f9859c8577fd9188277ff6fdb44 100644 (file)
@@ -329,8 +329,9 @@ main(int argc, char **argv)
 # endif
 #endif
 
-   /* for debugging by redirecting stdout of e to a log file to tail */
+   /* for debugging by redirecting stdout & stderr of e to a log file to tail */
    setvbuf(stdout, NULL, _IONBF, 0);
+   setvbuf(stderr, NULL, _IONBF, 0);
 
 #ifdef TS_DO
    t0 = t1 = t2 = ecore_time_unix_get();