Преглед изворни кода

SDL_systhread.c: Remove SIGCHLD from blocked signal mask.

When SIGCHLD is blocked, some executables (for example CMake) do not exit properly when executed using `SDL_CreateProcess` from any SDL thread (not main thread). `SDL_CreateProcessWithProperties` docs say that `SIGCHILD` should not be ignored or handled, therefore blocking it during thread creation is a likely reason for the bug. Should fix #15210.

Signed-off-by: Konstantin Tomashevich <konstantin.tomashevich@gmail.com>
Konstantin Tomashevich пре 3 дана
родитељ
комит
291d1b6491
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/thread/pthread/SDL_systhread.c

+ 1 - 1
src/thread/pthread/SDL_systhread.c

@@ -60,7 +60,7 @@
 #ifdef HAVE_SIGNAL_H
 #ifdef HAVE_SIGNAL_H
 // List of signals to mask in the subthreads
 // List of signals to mask in the subthreads
 static const int sig_list[] = {
 static const int sig_list[] = {
-    SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGWINCH,
+    SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGALRM, SIGTERM, SIGWINCH,
     SIGVTALRM, SIGPROF, 0
     SIGVTALRM, SIGPROF, 0
 };
 };
 #endif
 #endif