diff options
| author | Per Larsson <[email protected]> | 2022-02-22 09:21:41 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-02-22 09:21:41 +0100 |
| commit | df56272f21ac4b9700d9d1f4e1d313e1c48c0177 (patch) | |
| tree | a9c4047931a8ffaaeb6585ad82b9a0b15c246e76 | |
| parent | Fixed crashing websocket test. (diff) | |
| parent | Use sigaction() instead of the deprecated sigignore() (diff) | |
| download | zen-df56272f21ac4b9700d9d1f4e1d313e1c48c0177.tar.xz zen-df56272f21ac4b9700d9d1f4e1d313e1c48c0177.zip | |
Merge branch 'main' of https://github.com/EpicGames/zen
| -rw-r--r-- | zencore/thread.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 527938cf3..7b1396f5f 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -82,7 +82,10 @@ const bool bNoZombieChildren = [] () { // SIGCHLD siganals removes the need to call wait() on zombies. Another option // would be for the child to call setsid() but that would detatch the child // from the terminal. - sigignore(SIGCHLD); + struct sigaction Action = {}; + sigemptyset(&Action.sa_mask); + Action.sa_handler = SIG_IGN; + sigaction(SIGCHLD, &Action, nullptr); return true; } (); #endif |