diff options
Diffstat (limited to 'src/3rdparty/forkfd/forkfd.c')
-rw-r--r-- | src/3rdparty/forkfd/forkfd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdparty/forkfd/forkfd.c b/src/3rdparty/forkfd/forkfd.c index c4a670e1fc..84c979315f 100644 --- a/src/3rdparty/forkfd/forkfd.c +++ b/src/3rdparty/forkfd/forkfd.c @@ -181,8 +181,6 @@ static int tryReaping(pid_t pid, siginfo_t *info) return 0; // child did not change state info->si_signo = SIGCHLD; - info->si_utime = 0; - info->si_stime = 0; info->si_pid = pid; if (WIFEXITED(status)) { info->si_code = CLD_EXITED; @@ -234,6 +232,8 @@ static void sigchld_handler(int signum) siginfo_t info; int i; + memset(&info, 0, sizeof info); + #ifdef HAVE_WAITID /* be optimistic: try to see if we can get the child that exited */ search_next_child: |