diff options
author | Anand Avati <avati@gluster.com> | 2011-08-01 11:24:35 +0530 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-31 23:09:00 -0700 |
commit | 12752faeb094a0d7d240418b8518e78dd28f5fac (patch) | |
tree | 2a0e861de5dad913e8ec4d9575517d8ed9906f83 /glusterfsd | |
parent | 44598a525afadf2602733d1da2dfa767b5b857f2 (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>
Diffstat (limited to 'glusterfsd')
-rw-r--r-- | glusterfsd/src/glusterfsd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index f17ac814eb9..85f970b8da6 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 */ |