mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
add new switch --disallow-exit
This commit is contained in:
parent
f1d2bf8408
commit
756fac8d04
11 changed files with 87 additions and 52 deletions
|
|
@ -188,7 +188,9 @@ static int pa_cli_command_exit(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, pa_b
|
|||
pa_assert(buf);
|
||||
pa_assert(fail);
|
||||
|
||||
c->mainloop->quit(c->mainloop, 0);
|
||||
if (pa_core_exit(c, FALSE, 0) < 0)
|
||||
pa_strbuf_puts(buf, "Not allowed to terminate daemon.\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue