mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-25 14:50:04 +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
|
static void
|
||||||
on_disconnected (WpCore *core, WpDaemon * d)
|
on_disconnected (WpCore *core, WpDaemon * d)
|
||||||
{
|
{
|
||||||
wp_notice ("disconnected from pipewire");
|
wp_info ("disconnected from pipewire");
|
||||||
daemon_exit (d, WP_EXIT_OK);
|
daemon_exit (d, WP_EXIT_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -76,7 +76,10 @@ static gboolean
|
||||||
signal_handler (int signal, gpointer data)
|
signal_handler (int signal, gpointer data)
|
||||||
{
|
{
|
||||||
WpDaemon *d = data;
|
WpDaemon *d = data;
|
||||||
wp_notice ("stopped by signal: %s", strsignal (signal));
|
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);
|
daemon_exit (d, WP_EXIT_OK);
|
||||||
return G_SOURCE_CONTINUE;
|
return G_SOURCE_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue