Introduce dlog_is_fd_redirected
[platform/core/system/dlog.git] / src / shared / logcommon.c
index fb6f520..298bcd6 100644 (file)
@@ -403,7 +403,7 @@ int get_nonblocking_fifo(int fifo_fd[2], int flags)
        assert(fifo_fd);
        assert(!(flags & (O_RDONLY | O_WRONLY)));
 
-       char fifo_path[] = "/run/dlog/priv/fifo/fd-XXXXXX";
+       char fifo_path[] = PIPE_FIFO_PATH_TEMPLATE_FULL;
 
        if (!mktemp(fifo_path))
                return -errno;