From cd2d7202ccaf620cdb61c2b5b31767e1555d10e1 Mon Sep 17 00:00:00 2001 From: Munkyu Im Date: Wed, 16 Jul 2014 19:06:23 +0900 Subject: [PATCH] debugch: Add O_APPEND flag Otherwise, stderr and stdout are not written on log file. Change-Id: I6e00b3dd98fad261c2541eb7279d972402b4caca Signed-off-by: Munkyu Im --- tizen/src/debug_ch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tizen/src/debug_ch.c b/tizen/src/debug_ch.c index 1f7c164cb9..e2504f5658 100644 --- a/tizen/src/debug_ch.c +++ b/tizen/src/debug_ch.c @@ -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 */ -- 2.34.1