summaryrefslogtreecommitdiffstats
path: root/drivers/unix/os_unix.h
diff options
context:
space:
mode:
authormdavisprog <mdavisprog@gmail.com>2021-08-12 20:36:23 -0700
committermdavisprog <mdavisprog@gmail.com>2022-05-03 17:27:17 -0700
commitf3c1232c5984a540c33841694469febbe951e7a8 (patch)
tree216cf28e0079c5e34abaac465424c7d373ffe8a5 /drivers/unix/os_unix.h
parent1b2992799b324479b3fba9e05ae6226a46cb4143 (diff)
downloadredot-engine-f3c1232c5984a540c33841694469febbe951e7a8.tar.gz
Add OS::is_process_running function.
Adds the is_process_running function to the native OS class and exposes it to script. This is implemented on Windows and Unix platforms. A stub is provided for other platforms that do not support this function. Documentation is updated to reflect new API function.
Diffstat (limited to 'drivers/unix/os_unix.h')
-rw-r--r--drivers/unix/os_unix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/unix/os_unix.h b/drivers/unix/os_unix.h
index 6116574528..a1ed4bd501 100644
--- a/drivers/unix/os_unix.h
+++ b/drivers/unix/os_unix.h
@@ -76,6 +76,7 @@ public:
virtual Error create_process(const String &p_path, const List<String> &p_arguments, ProcessID *r_child_id = nullptr, bool p_open_console = false) override;
virtual Error kill(const ProcessID &p_pid) override;
virtual int get_process_id() const override;
+ virtual bool is_process_running(const ProcessID &p_pid) const override;
virtual bool has_environment(const String &p_var) const override;
virtual String get_environment(const String &p_var) const override;