From 282a7d4d183955914942cb7dcbc78662b87763a8 Mon Sep 17 00:00:00 2001 From: Rodolfo Ribeiro Gomes Date: Dec 04 2019 10:06:15 +0000 Subject: fix win32 build: but I don't know if this thread should be dettached there is no way to the thread ends except the Pipe creation error. --- diff --git a/synfig-studio/src/gui/ipc.cpp b/synfig-studio/src/gui/ipc.cpp index 668aa79..33075c8 100644 --- a/synfig-studio/src/gui/ipc.cpp +++ b/synfig-studio/src/gui/ipc.cpp @@ -170,11 +170,8 @@ IPC::IPC() cmd_dispatcher=new Glib::Dispatcher; cmd_dispatcher->connect(sigc::ptr_fun(empty_cmd_queue)); - new std::thread( - sigc::ptr_fun(pipe_listen_thread), - false - ); - + std::thread *t = new std::thread(pipe_listen_thread); + t->detach(); #else remove(fifo_path().c_str());