|
From: <mla...@us...> - 2007-12-02 01:32:25
|
Revision: 332
http://g15daemon.svn.sourceforge.net/g15daemon/?rev=332&view=rev
Author: mlampard
Date: 2007-12-01 17:32:29 -0800 (Sat, 01 Dec 2007)
Log Message:
-----------
catch SIGTERM and exit nicely.
Modified Paths:
--------------
trunk/g15daemon-wip/g15daemon/main.c
Modified: trunk/g15daemon-wip/g15daemon/main.c
===================================================================
--- trunk/g15daemon-wip/g15daemon/main.c 2007-12-02 00:48:22 UTC (rev 331)
+++ trunk/g15daemon-wip/g15daemon/main.c 2007-12-02 01:32:29 UTC (rev 332)
@@ -260,6 +260,7 @@
case SIGUSR1:
keyboard_backlight_off_onexit = 1;
case SIGINT:
+ case SIGTERM:
case SIGQUIT:
leaving = 1;
break;
@@ -457,6 +458,7 @@
new_action.sa_flags = 0;
sigaction(SIGINT, &new_action, NULL);
sigaction(SIGQUIT, &new_action, NULL);
+ sigaction(SIGTERM, &new_action, NULL);
sigaction(SIGUSR1, &new_action, NULL);
do {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|