diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-27 16:26:08 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-27 20:19:00 +0100 |
commit | ab939e059b4263fec4e26425bce6a12ecf88d2e6 (patch) | |
tree | 72be40877a6cb4e37962552bf3df3c88c9860974 /src/skel/glfw | |
parent | fix fix (diff) | |
download | re3-ab939e059b4263fec4e26425bce6a12ecf88d2e6.tar re3-ab939e059b4263fec4e26425bce6a12ecf88d2e6.tar.gz re3-ab939e059b4263fec4e26425bce6a12ecf88d2e6.tar.bz2 re3-ab939e059b4263fec4e26425bce6a12ecf88d2e6.tar.lz re3-ab939e059b4263fec4e26425bce6a12ecf88d2e6.tar.xz re3-ab939e059b4263fec4e26425bce6a12ecf88d2e6.tar.zst re3-ab939e059b4263fec4e26425bce6a12ecf88d2e6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/skel/glfw/glfw.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index 431697dc..aab78c6d 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -1271,10 +1271,11 @@ void terminateHandler(int sig, siginfo_t *info, void *ucontext) { RsGlobal.quit = TRUE; } +#ifdef FLUSHABLE_STREAMING void dummyHandler(int sig){ // Don't kill the app pls } - +#endif #endif void resizeCB(GLFWwindow* window, int width, int height) { @@ -1528,11 +1529,13 @@ main(int argc, char *argv[]) act.sa_sigaction = terminateHandler; act.sa_flags = SA_SIGINFO; sigaction(SIGTERM, &act, NULL); +#ifdef FLUSHABLE_STREAMING struct sigaction sa; sigemptyset(&sa.sa_mask); sa.sa_handler = dummyHandler; sa.sa_flags = 0; - sigaction(SIGUSR1, &sa, NULL); // Needed for CdStreamPosix + sigaction(SIGUSR1, &sa, NULL); +#endif #endif /* |