debugch: Add O_APPEND flag
authorMunkyu Im <munkyu.im@samsung.com>
Wed, 16 Jul 2014 10:06:23 +0000 (19:06 +0900)
committerMunkyu Im <munkyu.im@samsung.com>
Wed, 16 Jul 2014 10:06:23 +0000 (19:06 +0900)
Otherwise, stderr and stdout are not written on log file.

Change-Id: I6e00b3dd98fad261c2541eb7279d972402b4caca
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
tizen/src/debug_ch.c

index 1f7c164cb9f699dc03564c527a8f572376d7fed2..e2504f56586f1debfc4e2f612ef4f9a325febdbe 100644 (file)
@@ -247,7 +247,7 @@ static void debug_init(void)
     char *debug = NULL;
     FILE *fp = NULL;
     char *tmp = NULL;
-    int open_flags = O_RDWR | O_CREAT | O_TRUNC;
+    int open_flags = O_RDWR | O_CREAT | O_TRUNC | O_APPEND;
 
     if (nb_debug_options != -1) {
         return;  /* already initialized */