aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/process.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-01-15 09:30:12 +0100
committerDan Engelbrecht <[email protected]>2025-01-15 09:30:12 +0100
commit531c59032bbc46bc1f7284859fa8ff8c8b5ede61 (patch)
treec06583ef275904824a9eeae42951fa6a48ebae20 /src/zencore/process.cpp
parentclang format (diff)
downloadzen-531c59032bbc46bc1f7284859fa8ff8c8b5ede61.tar.xz
zen-531c59032bbc46bc1f7284859fa8ff8c8b5ede61.zip
systemd unit file, incomplete
Diffstat (limited to 'src/zencore/process.cpp')
-rw-r--r--src/zencore/process.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zencore/process.cpp b/src/zencore/process.cpp
index 3d6a67ada..8049130da 100644
--- a/src/zencore/process.cpp
+++ b/src/zencore/process.cpp
@@ -853,6 +853,10 @@ IsProcessRunning(int pid, std::error_code& OutEc)
{
return false;
}
+ else if (Error == EPERM)
+ {
+ return true; // Running under a user we don't have access to, assume it is live
+ }
else
{
OutEc = MakeErrorCode(Error);