Skip to content

Commit 7b7322b

Browse files
KonstantinTomashevichslouken
authored andcommitted
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> (cherry picked from commit 291d1b6)
1 parent a4c326a commit 7b7322b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/thread/pthread/SDL_systhread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
#ifdef HAVE_SIGNAL_H
6161
// List of signals to mask in the subthreads
6262
static const int sig_list[] = {
63-
SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGWINCH,
63+
SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGALRM, SIGTERM, SIGWINCH,
6464
SIGVTALRM, SIGPROF, 0
6565
};
6666
#endif

0 commit comments

Comments
 (0)