[rygel/wip/gapplication: 15/17] rygel: Also handle HUP (as quit for now)
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/gapplication: 15/17] rygel: Also handle HUP (as quit for now)
- Date: Sat, 30 Apr 2022 12:05:05 +0000 (UTC)
commit 591e2f402599b5fb5d9c8c789ba6cb084e2e2357
Author: Jens Georg <mail jensge org>
Date: Mon Sep 13 00:23:53 2021 +0200
rygel: Also handle HUP (as quit for now)
src/rygel/application.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/rygel/application.vala b/src/rygel/application.vala
index f026a1b66..d5265a8f8 100644
--- a/src/rygel/application.vala
+++ b/src/rygel/application.vala
@@ -18,8 +18,10 @@ public class Rygel.Application : GLib.Application {
flags : ApplicationFlags.HANDLES_COMMAND_LINE);
this.add_main_option_entries (CmdlineConfig.OPTIONS);
+
Unix.signal_add (ProcessSignal.INT, () => { this.release (); return false; });
Unix.signal_add (ProcessSignal.TERM, () => { this.release (); return false; });
+ Unix.signal_add (ProcessSignal.HUP, () => { this.release (); return false; });
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]