Allows to kill the process without losing log lines

Signed-off-by: Frediano Ziglio <[email protected]>
---
 src/spice-streaming-agent.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index b30e968..9ccc9da 100644
--- a/src/spice-streaming-agent.cpp
+++ b/src/spice-streaming-agent.cpp
@@ -489,6 +489,7 @@ int main(int argc, char* argv[])
                    log_filename, strerror(errno));
             return EXIT_FAILURE;
         }
+        setlinebuf(f_log);
         for (const std::string& arg: old_args) {
             STAT_LOG("Args: %s", arg.c_str());
         }
-- 
2.17.0

_______________________________________________
Spice-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to