diff options
author | wm4 <wm4@nowhere> | 2013-12-15 18:14:15 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-15 18:14:15 +0100 |
commit | cd064c679c3cfc923daee748b3b7afc15d5d37f1 (patch) | |
tree | 9660a90c86cf0c603894b99244a9613e6be02223 /mpvcore/input | |
parent | ff85afa537f48b20751c92a6453a579e2ff8a757 (diff) | |
download | mpv-cd064c679c3cfc923daee748b3b7afc15d5d37f1.tar.bz2 mpv-cd064c679c3cfc923daee748b3b7afc15d5d37f1.tar.xz |
input: don't quit with exit status 1 when receiving SIGTERM
Instead, do whatever the normal "quit" command does, which currently
is returning a status of 0.
Diffstat (limited to 'mpvcore/input')
-rw-r--r-- | mpvcore/input/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/input/input.c b/mpvcore/input/input.c index f9c7e0c173..26ab1a62ad 100644 --- a/mpvcore/input/input.c +++ b/mpvcore/input/input.c @@ -1914,7 +1914,7 @@ mp_cmd_t *mp_input_get_cmd(struct input_ctx *ictx, int time, int peek_only) { input_lock(ictx); if (async_quit_request) { - struct mp_cmd *cmd = mp_input_parse_cmd(ictx, bstr0("quit 1"), ""); + struct mp_cmd *cmd = mp_input_parse_cmd(ictx, bstr0("quit"), ""); queue_add_head(&ictx->cmd_queue, cmd); } |