]> git.proxmox.com Git - spiceterm.git/blobdiff - spiceterm.c
protect command ring with mutex
[spiceterm.git] / spiceterm.c
index b89c7a7801de893aaf85beee410793722b9adf56..f45bccdd4e0bc195b471c87f0267102369a557ac 100644 (file)
@@ -40,6 +40,7 @@
 #include "spiceterm.h"
 #include "glyphs.h"
 
+#include <glib.h>
 #include <spice.h>
 #include <spice/enums.h>
 #include <spice/macros.h>
@@ -1760,6 +1761,8 @@ main (int argc, char** argv)
   time_t elapsed, cur_time;
   struct winsize dimensions;
 
+  g_thread_init(NULL);
+
   for (i = 1; i < argc; i++) {
     if (!strcmp (argv[i], "-c")) {
       command = argv[i+1];