diff options
author | Amar Tumballi <amar@gluster.com> | 2010-03-08 05:31:11 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-03-09 00:24:54 -0800 |
commit | ffc138f7f19bf55c6daf8aea7f15bde1ca3cfc6a (patch) | |
tree | 47ac35677aff8982424528f43229e774ede65746 | |
parent | 8cb697667ff3da6cd497dedeeb7f65a9992145ee (diff) |
handle SIGINT in glusterfsd
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 703 (SIGINT not handled in glusterfsd)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=703
-rw-r--r-- | glusterfsd/src/glusterfsd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 14627f0af..072422fe4 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); */ |