From feefd93f84c7a91365718e30e4e52d765e128f75 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Wed, 21 Jul 2010 02:00:33 +0000 Subject: glusterfsd: make SIGINT gdb friendly Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971 --- glusterfsd/src/glusterfsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 29debda4b..dc5536bfb 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -1101,10 +1101,10 @@ glusterfs_signals_setup (glusterfs_ctx_t *ctx) signal (SIGTRAP, gf_print_trace); signal (SIGFPE, gf_print_trace); signal (SIGBUS, gf_print_trace); + signal (SIGINT, cleanup_and_exit); signal (SIGPIPE, SIG_IGN); /* block these signals from non-sigwaiter threads */ - sigaddset (&set, SIGINT); /* cleanup_and_exit */ sigaddset (&set, SIGTERM); /* cleanup_and_exit */ sigaddset (&set, SIGHUP); /* reincarnate */ sigaddset (&set, SIGUSR1); /* gf_proc_dump_info */ -- cgit