summaryrefslogtreecommitdiff
path: root/platform/javascript
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-01-23 01:25:47 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2020-01-23 01:26:32 +0100
commit90a1f8d8a7789c6fa9191c8684cd24edca066577 (patch)
treeae0045aac1b5da04f66be3b49ca1625a0e93ba45 /platform/javascript
parent94d3bcbc9b523a8aae4cc0dd1f1e522c2171900e (diff)
Make `OS.execute()` blocking by default if not specified
This makes `OS.execute()` calls quicker to set up when calling programs in a blocking fashion.
Diffstat (limited to 'platform/javascript')
-rw-r--r--platform/javascript/os_javascript.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/os_javascript.h b/platform/javascript/os_javascript.h
index 2d1c765e76..5c02a292ee 100644
--- a/platform/javascript/os_javascript.h
+++ b/platform/javascript/os_javascript.h
@@ -141,7 +141,7 @@ public:
void run_async();
bool main_loop_iterate();
- virtual Error execute(const String &p_path, const List<String> &p_arguments, bool p_blocking, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL, bool read_stderr = false, Mutex *p_pipe_mutex = NULL);
+ virtual Error execute(const String &p_path, const List<String> &p_arguments, bool p_blocking = true, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL, bool read_stderr = false, Mutex *p_pipe_mutex = NULL);
virtual Error kill(const ProcessID &p_pid);
virtual int get_process_id() const;