From 22b90236338dc075e5d181cbcd82140d9d6eca2a Mon Sep 17 00:00:00 2001 From: George Prekas Date: Wed, 2 Mar 2016 16:20:11 +0100 Subject: [PATCH] make sure event_base_loop returns quickly --- mutilate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutilate.cc b/mutilate.cc index c8ac8d3..f54886d 100644 --- a/mutilate.cc +++ b/mutilate.cc @@ -1127,7 +1127,7 @@ void do_mutilate(const vector& servers, options_t& options, #endif ) { int loop_flag = - (options.blocking || args.blocking_given) ? EVLOOP_ONCE : EVLOOP_NONBLOCK; + (options.blocking || args.blocking_given) ? EVLOOP_ONCE : EVLOOP_ONCE | EVLOOP_NONBLOCK; char *saveptr = NULL; // For reentrant strtok().