From 9fcf91dc72b814f1dfaeb0d4edc9dc691a4f16d0 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 20 Jul 2021 02:39:17 +0200 Subject: [PATCH] Oops. (fix inverted conditional from last commit) --- src/common/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils.cpp b/src/common/utils.cpp index ef9aab8b..7ea49807 100644 --- a/src/common/utils.cpp +++ b/src/common/utils.cpp @@ -100,7 +100,7 @@ bool pid_running(pid_t pid) { // NOTE: We can get a `EACCES` here if we don't have permissions to read // this process's memory. This does mean that the process is still // running. - return err.failed() || err.value() == EACCES; + return !err.failed() || err.value() == EACCES; } std::string url_encode_path(std::string path) {