mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 04:10:03 +01:00
Use wp_info() on normal termination
The service is normally stopped by SIGTERM. Using wp_info() here means users will be more likely to notice abnormal exits.
This commit is contained in:
parent
07e8248928
commit
eec702e4a1
1 changed files with 5 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ daemon_exit (WpDaemon * d, gint code)
|
|||
static void
|
||||
on_disconnected (WpCore *core, WpDaemon * d)
|
||||
{
|
||||
wp_notice ("disconnected from pipewire");
|
||||
wp_info ("disconnected from pipewire");
|
||||
daemon_exit (d, WP_EXIT_OK);
|
||||
}
|
||||
|
||||
|
|
@ -76,6 +76,9 @@ static gboolean
|
|||
signal_handler (int signal, gpointer data)
|
||||
{
|
||||
WpDaemon *d = data;
|
||||
if (signal == SIGTERM)
|
||||
wp_info ("stopped by signal: %s", strsignal (signal));
|
||||
else
|
||||
wp_notice ("stopped by signal: %s", strsignal (signal));
|
||||
daemon_exit (d, WP_EXIT_OK);
|
||||
return G_SOURCE_CONTINUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue