diff options
| author | Liam Mitchell <[email protected]> | 2025-03-13 17:46:06 -0700 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-03-13 17:46:06 -0700 |
| commit | 64f9055d3b5c445c57a0f2dacd20853667013819 (patch) | |
| tree | 54cf2adb63dec15affcdb796335b472d19e06bac /src/zencore/process.cpp | |
| parent | changelog (diff) | |
| parent | Update Linux service type and add libsystemd dependency (diff) | |
| download | zen-64f9055d3b5c445c57a0f2dacd20853667013819.tar.xz zen-64f9055d3b5c445c57a0f2dacd20853667013819.zip | |
Merge pull request #288 from ue-foundation/lm/zen-service-command
Implementation of service commands for Linux.
Diffstat (limited to 'src/zencore/process.cpp')
| -rw-r--r-- | src/zencore/process.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zencore/process.cpp b/src/zencore/process.cpp index 8e903f05f..9f0c9578f 100644 --- a/src/zencore/process.cpp +++ b/src/zencore/process.cpp @@ -24,7 +24,6 @@ # include <sys/sem.h> # include <sys/stat.h> # include <sys/syscall.h> -# include <sys/sysctl.h> # include <sys/wait.h> # include <time.h> # include <unistd.h> @@ -41,7 +40,9 @@ ZEN_THIRD_PARTY_INCLUDES_END namespace zen { #if ZEN_PLATFORM_LINUX -const bool bNoZombieChildren = []() { +void +IgnoreChildSignals() +{ // When a child process exits it is put into a zombie state until the parent // collects its result. This doesn't fit the Windows-like model that Zen uses // where there is a less strict familial model and no zombification. Ignoring @@ -52,8 +53,7 @@ const bool bNoZombieChildren = []() { sigemptyset(&Action.sa_mask); Action.sa_handler = SIG_IGN; sigaction(SIGCHLD, &Action, nullptr); - return true; -}(); +} static char GetPidStatus(int Pid, std::error_code& OutEc) |