From b92eeb9d10b6f9cacb9a5e0a78e808d687b00a6f Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 15 Jul 2020 00:38:05 -0400 Subject: Call `os.spawn()` exit callback after `proc:wait()`. Added tests for `os.spawn()`. --- core/.os.luadoc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core') diff --git a/core/.os.luadoc b/core/.os.luadoc index 1908c200..6c1b702b 100644 --- a/core/.os.luadoc +++ b/core/.os.luadoc @@ -31,7 +31,7 @@ module('os') -- @param exit_cb Optional Lua function that is called when the child process -- finishes. The child's exit status is passed. -- @return proc or nil plus an error message on failure --- @usage os.spawn('lua buffer.filename', print) +-- @usage os.spawn('lua ' .. buffer.filename, print) -- @usage proc = os.spawn('lua -e "print(io.read())"', print) -- proc:write('foo\n') -- @class function @@ -84,4 +84,3 @@ function spawn_proc:close() end -- @param signal Optional Unix signal to send to *spawn_proc*. The default value -- is 9 (`SIGKILL`), which kills the process. function spawn_proc:kill() end -]] -- cgit v1.2.3