diff options
| author | Martin Ridgers <[email protected]> | 2021-09-29 15:48:29 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-29 16:57:32 +0200 |
| commit | 729844ffaeca204c28bf2cd182ca2aad849e6e88 (patch) | |
| tree | a411db610c43860a63cae703f7e8a06f05217180 /zencore/thread.cpp | |
| parent | Added parentheseses' around the left-hand side of a bit-wise or. (diff) | |
| download | zen-729844ffaeca204c28bf2cd182ca2aad849e6e88.tar.xz zen-729844ffaeca204c28bf2cd182ca2aad849e6e88.zip | |
Implemented IsProcessRunning() for Linux
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 20ab19f56..aa5e91c72 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -360,7 +360,9 @@ IsProcessRunning(int pid) return true; #else - ZEN_NOT_IMPLEMENTED(); + char Buffer[64]; + sprintf(Buffer, "/proc/%d", pid); + return access(Buffer, F_OK) == 0; #endif } |