[Oisf-devel] [PATCH 1/2] Main loop: increase timer.

Eric Leblond eric at regit.org
Fri Dec 31 12:15:30 UTC 2010


Timer in the main loop was of 100 usec. This patch increases it
to 10 ms which should be a reasonnable delay to declare some threads
dead.

Signed-off-by: Eric Leblond <eric at regit.org>
---
 src/suricata.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/suricata.c b/src/suricata.c
index 28367f3..001fa0c 100644
--- a/src/suricata.c
+++ b/src/suricata.c
@@ -1263,7 +1263,7 @@ int main(int argc, char **argv)
 
         TmThreadCheckThreadState();
 
-        usleep(100);
+        usleep(10* 1000);
     }
 
     /* Update the engine stage/status flag */
-- 
1.7.1




More information about the Oisf-devel mailing list