summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-09 01:19:49 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-09 01:22:02 +0200
commit22c9e8b581afd5b531c0d4c2eb799ba23f37a506 (patch)
treeef55954df388d08d54cc30de130a504107a9b627 /src/skel/glfw
parentMerge branch 'master' of https://github.com/GTAmodding/re3 (diff)
downloadre3-22c9e8b581afd5b531c0d4c2eb799ba23f37a506.tar
re3-22c9e8b581afd5b531c0d4c2eb799ba23f37a506.tar.gz
re3-22c9e8b581afd5b531c0d4c2eb799ba23f37a506.tar.bz2
re3-22c9e8b581afd5b531c0d4c2eb799ba23f37a506.tar.lz
re3-22c9e8b581afd5b531c0d4c2eb799ba23f37a506.tar.xz
re3-22c9e8b581afd5b531c0d4c2eb799ba23f37a506.tar.zst
re3-22c9e8b581afd5b531c0d4c2eb799ba23f37a506.zip
Diffstat (limited to '')
-rw-r--r--src/skel/glfw/glfw.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp
index 4dd9570e..118ed950 100644
--- a/src/skel/glfw/glfw.cpp
+++ b/src/skel/glfw/glfw.cpp
@@ -1207,7 +1207,9 @@ void terminateHandler(int sig, siginfo_t *info, void *ucontext) {
}
void dummyHandler(int sig){
+ // Don't kill the app pls
}
+
#endif
void resizeCB(GLFWwindow* window, int width, int height) {
@@ -1454,9 +1456,10 @@ main(int argc, char *argv[])
act.sa_flags = SA_SIGINFO;
sigaction(SIGTERM, &act, NULL);
struct sigaction sa;
+ sigemptyset(&sa.sa_mask);
sa.sa_handler = dummyHandler;
sa.sa_flags = 0;
- sigaction(SIGINT, &sa, NULL); // Needed for CdStreamPosix
+ sigaction(SIGUSR1, &sa, NULL); // Needed for CdStreamPosix
#endif
/*