From cd064c679c3cfc923daee748b3b7afc15d5d37f1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 15 Dec 2013 18:14:15 +0100 Subject: 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. --- mpvcore/input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpvcore') 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); } -- cgit v1.2.3