summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2021-09-13 00:23:53 +0200
committerJens Georg <mail@jensge.org>2021-09-13 00:23:53 +0200
commit287c3fce6d5ded9335139b65d12a1e496ccec868 (patch)
tree918fe7d4e5a2ea2a016da2efe19528f958a37681
parent754513f42ca97f5239d624218ad66b91bdd10c70 (diff)
downloadrygel-287c3fce6d5ded9335139b65d12a1e496ccec868.tar.gz
rygel: Also handle HUP (as quit for now)
-rw-r--r--src/rygel/application.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rygel/application.vala b/src/rygel/application.vala
index f026a1b6..d5265a8f 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; });
}