core: Send byebye if killed with SIGTERM
authorJens Georg <mail@jensge.org>
Tue, 11 Oct 2011 10:23:44 +0000 (12:23 +0200)
committerJens Georg <mail@jensge.org>
Wed, 12 Oct 2011 08:24:31 +0000 (10:24 +0200)
src/rygel/rygel-signal-handler.vala

index 37419d7..5ef3728 100644 (file)
@@ -39,6 +39,7 @@ public class Rygel.SignalHandler : GLib.Object {
 
         /* Hook the handler for SIGTERM */
         sigaction (SIGINT, action, null);
+        sigaction (SIGTERM, action, null);
         sigaction (SIGHUP, action, null);
     }