summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2017-03-15 17:10:41 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2017-03-27 01:08:56 -0400
commit6c14e55377cc0080da88c5b997f5f7ea2374393b (patch)
treef0fb51e8c0deba06aea3177afa33f0701dd72175 /libglusterfs
parent98f602cd64e3f8cc7e4c4a7245e132c0afd7347f (diff)
libglusterfs: Initialize old sigset
...in gf_thread_create(). Technically, since we pass it as an argument to pthread_sigmask, initialization is not needed but doing it as a good practice. Change-Id: Ie069af07cb07c1784f3841e1fc628ca13dfdcef4 BUG: 1434274 Signed-off-by: Ravishankar N <ravishankar@redhat.com> Reviewed-on: https://review.gluster.org/16929 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Ashish Pandey <aspandey@redhat.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/common-utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c
index e18c97f5aa1..bdf340d8612 100644
--- a/libglusterfs/src/common-utils.c
+++ b/libglusterfs/src/common-utils.c
@@ -3569,8 +3569,7 @@ gf_thread_create (pthread_t *thread, const pthread_attr_t *attr,
sigset_t set, old;
int ret;
- sigemptyset (&set);
-
+ sigemptyset (&old);
sigfillset (&set);
sigdelset (&set, SIGSEGV);
sigdelset (&set, SIGBUS);