aboutsummaryrefslogtreecommitdiffstats
path: root/unix.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-27 19:45:16 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-27 19:45:16 +0200
commit82ca98619fc6fbef41de7235b5cc930961ef0cc0 (patch)
treeefbcb1cf544ad18deb407b74e4870084cfa733f2 /unix.c
parenta7dbf453dacf12fe27f361043057caba19b5695f (diff)
Fixed shutdown sequence (could cause 100% CPU usage on SIGTERM).
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix.c b/unix.c
index a9045c44..38366111 100644
--- a/unix.c
+++ b/unix.c
@@ -238,7 +238,7 @@ static void sighandler( int signal )
{
/* FIXME: Calling log_message() here is not a very good idea! */
- if( signal == SIGTERM )
+ if( signal == SIGTERM || signal == SIGQUIT || signal == SIGINT )
{
static int first = 1;