summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2011-08-01 11:24:35 +0530
committerAnand Avati <avati@gluster.com>2011-07-31 23:09:00 -0700
commit12752faeb094a0d7d240418b8518e78dd28f5fac (patch)
tree2a0e861de5dad913e8ec4d9575517d8ed9906f83
parent44598a525afadf2602733d1da2dfa767b5b857f2 (diff)
glusterfsd: initialize sigset_t in sigwaiter
Thanks to kkeithle@redhat.com for pointing out. Change-Id: I8167ffffddbdbc3dc09f7474bd834dbf4a49db9b BUG: 3280 Reviewed-on: http://review.gluster.com/131 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
-rw-r--r--glusterfsd/src/glusterfsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index f17ac81..85f970b 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -1208,6 +1208,7 @@ glusterfs_sigwaiter (void *arg)
int sig = 0;
+ sigemptyset (&set);
sigaddset (&set, SIGINT); /* cleanup_and_exit */
sigaddset (&set, SIGTERM); /* cleanup_and_exit */
sigaddset (&set, SIGHUP); /* reincarnate */