summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-07-21 02:00:33 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-21 00:46:43 -0700
commitfeefd93f84c7a91365718e30e4e52d765e128f75 (patch)
tree0a8866f141889d4ec24b9f9b9e54d22ebc61d252 /glusterfsd
parent5342e3a819896c9ae01a959c580a7f0eb0b3ccb2 (diff)
glusterfsd: make SIGINT gdb friendly
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 29debda4b9e..dc5536bfb62 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 */