summaryrefslogtreecommitdiffhomepage
path: root/process.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-09 11:29:22 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-09 11:29:22 +0100
commit24b3afa684e57176f5068fd5896679ae0fa047ad (patch)
treec9f6d03fadcb762ae0163f14f52462338249e62a /process.h
parente7dd0b98770ee0c88c1ea976d9e9a6d3979782f7 (diff)
Add process.h: is_running()
Diffstat (limited to 'process.h')
-rw-r--r--process.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/process.h b/process.h
new file mode 100644
index 0000000..a47dd6c
--- /dev/null
+++ b/process.h
@@ -0,0 +1,7 @@
+#pragma once
+
+#include <sys/types.h>
+
+namespace Reichwein::Process {
+ bool is_running(pid_t pid);
+} // namespace