summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-27 16:26:08 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-27 20:19:00 +0100
commitab939e059b4263fec4e26425bce6a12ecf88d2e6 (patch)
tree72be40877a6cb4e37962552bf3df3c88c9860974 /src/skel/glfw
parentfix fix (diff)
downloadre3-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 'src/skel/glfw')
-rw-r--r--src/skel/glfw/glfw.cpp7
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
/*