From 82ca98619fc6fbef41de7235b5cc930961ef0cc0 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 27 Jul 2010 19:45:16 +0200 Subject: Fixed shutdown sequence (could cause 100% CPU usage on SIGTERM). --- unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unix.c') 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; -- cgit v1.2.3