diff options
author | wm4 <wm4@nowhere> | 2015-06-10 23:18:42 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-10 23:18:42 +0200 |
commit | b655ed5ed0c6d58a7e8937c28a7b2a0ccdf9c97e (patch) | |
tree | 688957170f98df217da602d94ca7fc9454277de8 /DOCS/man | |
parent | a3d561f950e74fe7e54fa9c4c6ade05181ecc1ed (diff) | |
download | mpv-b655ed5ed0c6d58a7e8937c28a7b2a0ccdf9c97e.tar.bz2 mpv-b655ed5ed0c6d58a7e8937c28a7b2a0ccdf9c97e.tar.xz |
player: use 4 as process exit code on user quits
So successful playback and user quit can be distinguished, for whatever
reason you may want to do this.
Normally, the "quit" command can be customized, but this does not work
for quit commands sent by the terminal signal handler. One solution
would be introducing something like "ON_SIGNAL" (equivalent to
"CLOSE_WIN"), but considering there are a bunch of possible signals, I'd
rather not get into this. So go with the dumb solution.
Probably fixes #2029.
Diffstat (limited to 'DOCS/man')
-rw-r--r-- | DOCS/man/mpv.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/DOCS/man/mpv.rst b/DOCS/man/mpv.rst index 63c4484bb8..813221ac0f 100644 --- a/DOCS/man/mpv.rst +++ b/DOCS/man/mpv.rst @@ -807,6 +807,7 @@ If errors happen, the following exit codes can be returned: immediately after initialization. :3: There were some files that could be played, and some files which couldn't (using the definition of success from above). + :4: The ``quit`` command was issued (default exit code). Note that quitting the player manually will always lead to exit code 0, overriding the exit code that would be returned normally. Also, the ``quit`` |