Fix POSIX streaming

This commit is contained in:
eray orçunus
2020-10-09 02:19:49 +03:00
parent 7f330bfbf9
commit 22c9e8b581
2 changed files with 11 additions and 4 deletions

View File

@ -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
/*