[tuxdroid-svn] r370 - daemon/trunk
Status: Beta
Brought to you by:
ks156
From: neimad <c2m...@c2...> - 2007-06-12 04:57:07
|
Author: neimad Date: 2007-06-12 06:56:15 +0200 (Tue, 12 Jun 2007) New Revision: 370 Modified: daemon/trunk/main.c Log: * Handle SIGTERM to exit cleanly on shutdown (gentle signal sent by init scripts before the violent SIGKILL). Modified: daemon/trunk/main.c =================================================================== --- daemon/trunk/main.c 2007-06-12 04:46:12 UTC (rev 369) +++ daemon/trunk/main.c 2007-06-12 04:56:15 UTC (rev 370) @@ -328,6 +328,7 @@ log_level_t log_level = LOG_LEVEL_INFO; /* On exiting */ + signal(SIGTERM, quit_handler); signal(SIGINT, quit_handler); /* Program arguments */ |