summaryrefslogtreecommitdiffstats
path: root/src/skel
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 16:26:08 +0100
commit843dd9b5e12c2de92fc3f0923260204eb07f3f0d (patch)
tree2fb208d9f64c1f13e952d21a5c2322e825032bf1 /src/skel
parentFix doubles in ZoneCull (diff)
downloadre3-843dd9b5e12c2de92fc3f0923260204eb07f3f0d.tar
re3-843dd9b5e12c2de92fc3f0923260204eb07f3f0d.tar.gz
re3-843dd9b5e12c2de92fc3f0923260204eb07f3f0d.tar.bz2
re3-843dd9b5e12c2de92fc3f0923260204eb07f3f0d.tar.lz
re3-843dd9b5e12c2de92fc3f0923260204eb07f3f0d.tar.xz
re3-843dd9b5e12c2de92fc3f0923260204eb07f3f0d.tar.zst
re3-843dd9b5e12c2de92fc3f0923260204eb07f3f0d.zip
Diffstat (limited to 'src/skel')
-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 938cc328..3aa070f9 100644
--- a/src/skel/glfw/glfw.cpp
+++ b/src/skel/glfw/glfw.cpp
@@ -1239,10 +1239,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) {
@@ -1496,11 +1497,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
/*