mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00:00
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.
This commit is contained in:
parent
ff85afa537
commit
cd064c679c
@ -1914,7 +1914,7 @@ mp_cmd_t *mp_input_get_cmd(struct input_ctx *ictx, int time, int peek_only)
|
|||||||
{
|
{
|
||||||
input_lock(ictx);
|
input_lock(ictx);
|
||||||
if (async_quit_request) {
|
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);
|
queue_add_head(&ictx->cmd_queue, cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user