From 7428cc51496ca8e56600fdc4034b8f55720f09f9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 13 May 2018 13:48:47 +0200 Subject: client API: kill async commands on termination This affects async commands started by client API, commands with async capability run in a sync way by client API (think mpv_command_node() with "subprocess"), and detached async work. Since scripts might want to do some cleanup work (that might involve launching processes, don't ask), we don't unconditionally kill everything on exit, but apply an arbitrary timeout of 2 seconds until async commands are aborted. --- DOCS/man/input.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'DOCS') diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index cadf515567..4b5ebffd0f 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -365,6 +365,9 @@ List of Input Commands This command can be asynchronously aborted via API. + In all cases, the subprocess will be terminated on player exit. Only the + ``run`` command can start processes in a truly detached way. + ``quit []`` Exit the player. If an argument is given, it's used as process exit code. -- cgit v1.2.3