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:08:48 -0700 |
commit | 9867f3954138e795123b4b308e256e641c55f3ec (patch) | |
tree | a367de8a62c43b57022af917e87b384a380cd5bb /glusterfsd/src | |
parent | a13fbaca0512cae3853a2372d0d8237eb24dd225 (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/129
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amar@gluster.com>
Diffstat (limited to 'glusterfsd/src')
-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 35cb286ea..5b7714dfe 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -1279,6 +1279,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 */ |