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:19:49 +0200
commited82c55475f4cda6d1ed0644ea1609e08b5b0e64 (patch)
treefe9b8f5616adf9cf76cbdc84425c3ec3eee67a5d /src/skel/glfw
parentMerge branch 'miami' of https://github.com/GTAmodding/re3 into new (diff)
downloadre3-ed82c55475f4cda6d1ed0644ea1609e08b5b0e64.tar
re3-ed82c55475f4cda6d1ed0644ea1609e08b5b0e64.tar.gz
re3-ed82c55475f4cda6d1ed0644ea1609e08b5b0e64.tar.bz2
re3-ed82c55475f4cda6d1ed0644ea1609e08b5b0e64.tar.lz
re3-ed82c55475f4cda6d1ed0644ea1609e08b5b0e64.tar.xz
re3-ed82c55475f4cda6d1ed0644ea1609e08b5b0e64.tar.zst
re3-ed82c55475f4cda6d1ed0644ea1609e08b5b0e64.zip
Diffstat (limited to 'src/skel/glfw')
-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 74330141..0f520cad 100644
--- a/src/skel/glfw/glfw.cpp
+++ b/src/skel/glfw/glfw.cpp
@@ -1228,7 +1228,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) {
@@ -1475,9 +1477,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
/*