On 1/5/21 3:09 PM, Paolo Bonzini wrote:
On 05/01/21 19:03, Daniel Henrique Barboza wrote:
+ /*
+ * The trace backend must be initialized before daemonizing.
after, not before. :)
hahaha messed up in the comment block. Typical.
With this fixed,
Reviewed-by: Paolo Bonzini <pbonz...@redhat.com>
Thanks. I submitted a v2 with your R-b and the comment fix.
DHB
+ * trace_init_backends() will call st_init(), which will create the
+ * trace thread in the parent, and also register st_flush_trace_buffer()
+ * in atexit(). This function will force the parent to wait for the
+ * writeout thread to finish, which will not occur, and the parent
+ * process will be left in the host.
+ */
+ if (!trace_init_backends()) {
+ exit(1);
+ }
+ trace_init_file();
+