diff options
author | Jens Georg <mail@jensge.org> | 2021-09-13 00:23:53 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2021-09-13 00:23:53 +0200 |
commit | 287c3fce6d5ded9335139b65d12a1e496ccec868 (patch) | |
tree | 918fe7d4e5a2ea2a016da2efe19528f958a37681 | |
parent | 754513f42ca97f5239d624218ad66b91bdd10c70 (diff) | |
download | rygel-287c3fce6d5ded9335139b65d12a1e496ccec868.tar.gz |
rygel: Also handle HUP (as quit for now)
-rw-r--r-- | src/rygel/application.vala | 2 |
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; }); } |