Browse Source

Call XInitThreads on plugin bridges

tags/1.9.7
falkTX 9 years ago
parent
commit
f8222c5128
2 changed files with 10 additions and 1 deletions
  1. +9
    -0
      source/bridges-plugin/CarlaBridgePlugin.cpp
  2. +1
    -1
      source/utils/CarlaPipeUtils.cpp

+ 9
- 0
source/bridges-plugin/CarlaBridgePlugin.cpp View File

@@ -25,6 +25,10 @@
# include <signal.h>
#endif

#ifdef CARLA_OS_LINUX
# include <X11/Xlib.h>
#endif

#include "jackbridge/JackBridge.hpp"
#include "juce_core.h"

@@ -414,6 +418,11 @@ int main(int argc, char* argv[])
extraStuff = "true";
}

#ifdef CARLA_OS_LINUX
if (std::getenv("DISPLAY") != nullptr)
XInitThreads();
#endif

// ---------------------------------------------------------------------
// Init plugin bridge



+ 1
- 1
source/utils/CarlaPipeUtils.cpp View File

@@ -241,7 +241,7 @@ bool startProcess(const char* const argv[], pid_t& pidinst) noexcept
CarlaString error(std::strerror(errno));
carla_stderr2("exec failed: %s", error.buffer());

_exit(0); // this is not noexcept safe but doesn't matter anyway
_exit(1); // this is not noexcept safe but doesn't matter anyway
} break;

case -1: { // error


Loading…
Cancel
Save