summaryrefslogtreecommitdiff
path: root/src/common/thread.c
diff options
context:
space:
mode:
authorDastgir <dastgirpojee@rocketmail.com>2015-01-15 12:11:08 +0530
committerDastgir <dastgirpojee@rocketmail.com>2015-01-15 12:11:08 +0530
commit06166cac023cefa193926de5a47dd7bc11f298b3 (patch)
tree3e235122b16652e9262736e82d0f0804680aae22 /src/common/thread.c
parent9fbeb05aa054b5ed9641460d2639f30812edd957 (diff)
parent3c032b6766ded92ef032862ff3b812cad0eacefd (diff)
downloadhercules-06166cac023cefa193926de5a47dd7bc11f298b3.tar.gz
hercules-06166cac023cefa193926de5a47dd7bc11f298b3.tar.bz2
hercules-06166cac023cefa193926de5a47dd7bc11f298b3.tar.xz
hercules-06166cac023cefa193926de5a47dd7bc11f298b3.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/common/thread.c')
-rw-r--r--src/common/thread.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/common/thread.c b/src/common/thread.c
index a00bd6333..95212b4b0 100644
--- a/src/common/thread.c
+++ b/src/common/thread.c
@@ -10,10 +10,7 @@
#include "thread.h"
-#include "../common/sysinfo.h" // sysinfo->getpagesize()
#include "../common/cbasetypes.h"
-#include "../common/malloc.h"
-#include "../common/showmsg.h"
#ifdef WIN32
# include "../common/winapi.h"
@@ -27,6 +24,10 @@
# include <unistd.h>
#endif
+#include "../common/malloc.h"
+#include "../common/showmsg.h"
+#include "../common/sysinfo.h" // sysinfo->getpagesize()
+
// When Compiling using MSC (on win32..) we know we have support in any case!
#ifdef _MSC_VER
#define HAS_TLS
@@ -122,10 +123,10 @@ static void *raThreadMainRedirector( void *p ){
// the threads inherits the Signal mask from the thread which spawned
// this thread
// so we've to block everything we don't care about.
- sigemptyset(&set);
- sigaddset(&set, SIGINT);
- sigaddset(&set, SIGTERM);
- sigaddset(&set, SIGPIPE);
+ (void)sigemptyset(&set);
+ (void)sigaddset(&set, SIGINT);
+ (void)sigaddset(&set, SIGTERM);
+ (void)sigaddset(&set, SIGPIPE);
pthread_sigmask(SIG_BLOCK, &set, NULL);