[rygel] core: Send byebye if killed with SIGTERM



commit 88cecaf5e9d671572fbe08e1cc91d32cdd5128a1
Author: Jens Georg <mail jensge org>
Date:   Tue Oct 11 12:23:44 2011 +0200

    core: Send byebye if killed with SIGTERM

 src/rygel/rygel-signal-handler.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-signal-handler.vala b/src/rygel/rygel-signal-handler.vala
index 37419d7..5ef3728 100644
--- a/src/rygel/rygel-signal-handler.vala
+++ b/src/rygel/rygel-signal-handler.vala
@@ -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);
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]