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

Victor Julien victor at inliniac.net
Fri Dec 31 16:51:51 UTC 2010


On 12/31/2010 01:15 PM, Eric Leblond wrote:
> 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 */

Makes sense so applied. Thanks Eric.

Cheers,
Victor

-- 
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------




More information about the Oisf-devel mailing list