diff options
author | Philip Sequeira <phsequei@gmail.com> | 2015-07-11 14:07:58 -0400 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-11 23:46:49 +0200 |
commit | 4a4f788a68a0ca73dcc3eed6ccd0533be4912b20 (patch) | |
tree | 5b46154b0d44ca105052d1f091edfe1a882fe86d /osdep | |
parent | 898855cc0d076e4132140abce5913c298de83a00 (diff) | |
download | mpv-4a4f788a68a0ca73dcc3eed6ccd0533be4912b20.tar.bz2 mpv-4a4f788a68a0ca73dcc3eed6ccd0533be4912b20.tar.xz |
player: use exit code 0 by default for quit, 4 for signals, etc.
Default key bindings in encoding mode also use code 4, because scripts
will probably want to fail if encoding is aborted (leaving an
incomplete file).
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/terminal-unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c index ca7b59a964..8e417a5214 100644 --- a/osdep/terminal-unix.c +++ b/osdep/terminal-unix.c @@ -399,7 +399,7 @@ static void *terminal_thread(void *ptr) stdin_ok = getch2(input_ctx); } // Important if we received SIGTERM, rather than regular quit. - struct mp_cmd *cmd = mp_input_parse_cmd(input_ctx, bstr0("quit"), ""); + struct mp_cmd *cmd = mp_input_parse_cmd(input_ctx, bstr0("quit 4"), ""); if (cmd) mp_input_queue_cmd(input_ctx, cmd); return NULL; |