Bugfix: Do not exit if log directory is deleted on runtime.
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 10 Apr 2013 06:32:38 +0000 (15:32 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 10 Apr 2013 06:43:40 +0000 (15:43 +0900)
Change-Id: I1c1a19f7f144f336405aa765527dcc195fea04b0
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
tizen/src/debug_ch.c

index 17954553f0e9aba86a4e53353c22da610f6cb5fa..cfc4ce68fd8bd63ff443b8fb2e64d4f5b7f9b014 100644 (file)
@@ -444,7 +444,8 @@ int dbg_log( enum _debug_class cls, struct _debug_channel *channel,
        fd = qemu_open(log_path, open_flags, 0666);
        if(fd < 0) {
         fprintf(stderr, "Can't open logfile: %s\n", log_path);
-       exit(1);
+        // commented out for prevent shutdown when log directory is removed on runtime.
+        //exit(1);
     }
     ret_write = qemu_write_full(fd, buf, ret);
     if (ret_write != ret) {