From 03c70a8d81f14ce46bc3410b08f5956d6af34d82 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 27 Jun 2015 21:08:55 +0200 Subject: 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. --- DOCS/man/lua.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'DOCS') 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])`` -- cgit v1.2.3