From 8fcdf4cd321dc928c35482e683072798882a0eef Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 24 May 2020 14:52:15 -0400 Subject: Changed `os.spawn()` exit callback and `spawn_proc:wait()` behavior. Since `waitpid()` cannot be used by both GLib (via `os.spawn()`) and `spawn_proc:wait()`, use only one or the other. Then clean up after process exit. --- core/.os.luadoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/.os.luadoc') diff --git a/core/.os.luadoc b/core/.os.luadoc index bb7fcd6f..fa118b0c 100644 --- a/core/.os.luadoc +++ b/core/.os.luadoc @@ -45,7 +45,8 @@ local spawn function spawn_proc:status() end --- --- Blocks until process *spawn_proc* finishes and returns its status code. +-- Blocks until process *spawn_proc* finishes (if it has not already done so) +-- and returns its status code. -- @return integer status code function spawn_proc:wait() end -- cgit v1.2.3