Changeset 496 for trunk/src/samhain.c


Ignore:
Timestamp:
Dec 7, 2015, 7:04:28 PM (9 years ago)
Author:
katerina
Message:

Fix for ticket #393 (wrong policy assigned).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/samhain.c

    r489 r496  
    12501250 
    12511251  sh_thread_pause_flag = S_TRUE;
     1252
     1253  for (modnum = 0; modList[modnum].name != NULL; ++modnum)
     1254    {
     1255      if (0 != (SH_MODFL_NEEDPAUSED & modList[modnum].flags) &&
     1256          modList[modnum].initval == SH_MOD_THREAD)
     1257        {
     1258          int count = 50;
     1259          while (count && 0 == (SH_MODFL_ISPAUSED & modList[modnum].flags))
     1260            retry_msleep(0, 100), --count;
     1261        }
     1262    }
    12521263 
    12531264#if defined(WITH_EXTERNAL)
Note: See TracChangeset for help on using the changeset viewer.