diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-07-15 00:38:05 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-07-15 00:38:05 -0400 |
commit | b92eeb9d10b6f9cacb9a5e0a78e808d687b00a6f (patch) | |
tree | cc2d20118bb32bb940bffd5865a6d34115c4d672 /core/.os.luadoc | |
parent | ec96c0bed0fdb3df98c88fc6d559fa4e483fb912 (diff) |
Call `os.spawn()` exit callback after `proc:wait()`.
Added tests for `os.spawn()`.
Diffstat (limited to 'core/.os.luadoc')
-rw-r--r-- | core/.os.luadoc | 3 |
1 files changed, 1 insertions, 2 deletions
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 -]] |