From ffc138f7f19bf55c6daf8aea7f15bde1ca3cfc6a Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 8 Mar 2010 05:31:11 +0000 Subject: handle SIGINT in glusterfsd Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati BUG: 703 (SIGINT not handled in glusterfsd) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=703 --- glusterfsd/src/glusterfsd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 14627f0a..072422fe 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -1242,6 +1242,10 @@ main (int argc, char *argv[]) signal (SIGPIPE, SIG_IGN); signal (SIGHUP, gf_log_logrotate); signal (SIGTERM, cleanup_and_exit); + /* if used inside GDB, then this is overridden, hence making + it a safer option */ + signal (SIGINT, cleanup_and_exit); + /* This is used to dump details */ /* signal (SIGUSR2, (sighandler_t) glusterfs_stats); */ -- cgit