mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
daemon: Exit with code 0 on SIGINT and SIGTERM
see https://bugs.freedesktop.org/show_bug.cgi?id=86818 an exit code of 1 makes systemd believe that the service failed; better return 0 to denote that PA sucessfully stopped on the user's request sidenote: systemd's SuccessExitStatus= could be used to turn code 1 into a code denoting success Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Cc: jan.steffens@gmail.com
This commit is contained in:
parent
a7d41ef043
commit
cf0cd5fe18
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ static void signal_callback(pa_mainloop_api*m, pa_signal_event *e, int sig, void
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
default:
|
default:
|
||||||
pa_log_info("Exiting.");
|
pa_log_info("Exiting.");
|
||||||
m->quit(m, 1);
|
m->quit(m, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue