summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-27 21:08:55 +0200
committerwm4 <wm4@nowhere>2015-06-27 21:08:55 +0200
commit03c70a8d81f14ce46bc3410b08f5956d6af34d82 (patch)
tree39f71e3672e99990eaa665a58a6f3a174c025a54 /DOCS
parent6ffb1e2b661464bc31e2cfffd1d77727f27e1561 (diff)
downloadmpv-03c70a8d81f14ce46bc3410b08f5956d6af34d82.tar.bz2
mpv-03c70a8d81f14ce46bc3410b08f5956d6af34d82.tar.xz
subprocess, lua: export whether the process was killed by us
We want to distinguish actual errors, and just aborting the program intentionally. Also be a bit more careful with handling the wait() exit status: do not called WEXITSTATUS() without checking WIFEXITED() first.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/lua.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst
index c52e95c388..d51a6d95c5 100644
--- a/DOCS/man/lua.rst
+++ b/DOCS/man/lua.rst
@@ -630,6 +630,10 @@ strictly part of the guaranteed API.
On Windows, ``killed`` is only returned when the process has been
killed by mpv as a result of ``cancellable`` being set to ``true``.
+ ``killed_by_us``
+ Set to ``true`` if the process has been killed by mpv as a result
+ of ``cancellable`` being set to ``true``.
+
In all cases, ``mp.resume_all()`` is implicitly called.
``utils.parse_json(str [, trail])``