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:55 -0700 |
commit | 341966c3eb092bff5cb3757118c1d011aa8c4f01 (patch) | |
tree | e546f30027f8941d378b4ea0f13f92badf513f45 | |
parent | 5f98fe60c291075702ef61f711ba89f724d2e75e (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/130
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amar@gluster.com>
-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 2ee913eb6..2beb90dc7 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -1246,6 +1246,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 */ |