mingw: fix use of undefined USR2 signal

pull/3112/head
Victor Julien 9 years ago
parent e113fa96e9
commit 895df9a6f6

@ -323,9 +323,10 @@ static void StatsReleaseCtx(void)
*/
static void *StatsMgmtThread(void *arg)
{
#ifndef OS_WIN32
/* block usr2. usr2 to be handled by the main thread only */
UtilSignalBlock(SIGUSR2);
#endif
ThreadVars *tv_local = (ThreadVars *)arg;
uint8_t run = 1;
struct timespec cond_time;
@ -410,9 +411,10 @@ static void *StatsMgmtThread(void *arg)
*/
static void *StatsWakeupThread(void *arg)
{
#ifndef OS_WIN32
/* block usr2. usr2 to be handled by the main thread only */
UtilSignalBlock(SIGUSR2);
#endif
ThreadVars *tv_local = (ThreadVars *)arg;
uint8_t run = 1;
ThreadVars *tv = NULL;

@ -564,9 +564,10 @@ static TmEcode DetectLoaderThreadDeinit(ThreadVars *t, void *data)
static TmEcode DetectLoader(ThreadVars *th_v, void *thread_data)
{
#ifndef OS_WIN32
/* block usr2. usr2 to be handled by the main thread only */
UtilSignalBlock(SIGUSR2);
#endif
DetectLoaderThreadData *ftd = (DetectLoaderThreadData *)thread_data;
BUG_ON(ftd == NULL);

@ -658,9 +658,10 @@ static TmEcode FlowManagerThreadDeinit(ThreadVars *t, void *data)
*/
static TmEcode FlowManager(ThreadVars *th_v, void *thread_data)
{
#ifndef OS_WIN32
/* block usr2. usr1 to be handled by the main thread only */
UtilSignalBlock(SIGUSR2);
#endif
FlowManagerThreadData *ftd = thread_data;
struct timeval ts;
uint32_t established_cnt = 0, new_cnt = 0, closing_cnt = 0;
@ -886,9 +887,10 @@ static TmEcode FlowRecyclerThreadDeinit(ThreadVars *t, void *data)
*/
static TmEcode FlowRecycler(ThreadVars *th_v, void *thread_data)
{
#ifndef OS_WIN32
/* block usr2. usr2 to be handled by the main thread only */
UtilSignalBlock(SIGUSR2);
#endif
struct timeval ts;
struct timespec cond_time;
int flow_update_delay_sec = FLOW_NORMAL_MODE_UPDATE_DELAY_SEC;

@ -255,9 +255,10 @@ static int TmThreadTimeoutLoop(ThreadVars *tv, TmSlot *s)
static void *TmThreadsSlotPktAcqLoop(void *td)
{
#ifndef OS_WIN32
/* block usr2. usr2 to be handled by the main thread only */
UtilSignalBlock(SIGUSR2);
#endif
ThreadVars *tv = (ThreadVars *)td;
TmSlot *s = tv->tm_slots;
char run = 1;
@ -506,9 +507,10 @@ error:
*/
static void *TmThreadsSlotVar(void *td)
{
#ifndef OS_WIN32
/* block usr2. usr2 to be handled by the main thread only */
UtilSignalBlock(SIGUSR2);
#endif
ThreadVars *tv = (ThreadVars *)td;
TmSlot *s = (TmSlot *)tv->tm_slots;
Packet *p = NULL;
@ -667,9 +669,10 @@ error:
static void *TmThreadsManagement(void *td)
{
#ifndef OS_WIN32
/* block usr2. usr2 to be handled by the main thread only */
UtilSignalBlock(SIGUSR2);
#endif
ThreadVars *tv = (ThreadVars *)td;
TmSlot *s = (TmSlot *)tv->tm_slots;
TmEcode r = TM_ECODE_OK;

Loading…
Cancel
Save