summaryrefslogtreecommitdiffstats
path: root/drivers/unix/os_unix.h
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-18 18:49:13 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2021-01-09 10:03:23 +0000
commit2a74b388d0e228dc1b890a3ed2529dbec23ecf30 (patch)
tree225277d26786c748fcbcd81ce35bb53459265757 /drivers/unix/os_unix.h
parent98ccaa1bad97bdb83b2afd6a4df6f7a392745592 (diff)
downloadredot-engine-2a74b388d0e228dc1b890a3ed2529dbec23ecf30.tar.gz
Split OS::execute into two methods
1. execute(): Executes a command and returns the results. 2. create_process(): Creates a new process and returns the new process' id.
Diffstat (limited to 'drivers/unix/os_unix.h')
-rw-r--r--drivers/unix/os_unix.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.h b/drivers/unix/os_unix.h
index 7d1f1c82c2..6c79d984e9 100644
--- a/drivers/unix/os_unix.h
+++ b/drivers/unix/os_unix.h
@@ -82,7 +82,8 @@ public:
virtual void delay_usec(uint32_t p_usec) const override;
virtual uint64_t get_ticks_usec() const override;
- virtual Error execute(const String &p_path, const List<String> &p_arguments, bool p_blocking = true, ProcessID *r_child_id = nullptr, String *r_pipe = nullptr, int *r_exitcode = nullptr, bool read_stderr = false, Mutex *p_pipe_mutex = nullptr) override;
+ virtual Error execute(const String &p_path, const List<String> &p_arguments, String *r_pipe = nullptr, int *r_exitcode = nullptr, bool read_stderr = false, Mutex *p_pipe_mutex = nullptr) override;
+ virtual Error create_process(const String &p_path, const List<String> &p_arguments, ProcessID *r_child_id = nullptr) override;
virtual Error kill(const ProcessID &p_pid) override;
virtual int get_process_id() const override;