diff --git a/src/base/system.cpp b/src/base/system.cpp index 7a5ce590bd4..ca7528ad857 100644 --- a/src/base/system.cpp +++ b/src/base/system.cpp @@ -4153,7 +4153,7 @@ int kill_process(PROCESS process) #elif defined(CONF_FAMILY_UNIX) int status; kill(process, SIGTERM); - return !waitpid(process, &status, 0); + return waitpid(process, &status, 0) != -1; #endif }