diff --git a/misc.cpp b/misc.cpp index 3dc91c0..188cdac 100644 --- a/misc.cpp +++ b/misc.cpp @@ -759,7 +759,7 @@ void process_arg(int argc, char *argv[]) //process all options } else if(strcmp(long_options[option_index].name,"no-pcap-mutex")==0) { - use_pcap_mutex=9; + use_pcap_mutex=0; mylog(log_warn,"--no-pcap-mutex enabled, we will assume the underlying pcap calls are threadsafe\n"); } else if(strcmp(long_options[option_index].name,"easy-tcp")==0) diff --git a/network.cpp b/network.cpp index 2617c6d..615782d 100644 --- a/network.cpp +++ b/network.cpp @@ -866,10 +866,9 @@ void init_filter(int port) } ev_sleep(0.001); } + mylog(log_info,"breakloop() succeed after %lld attempt(s)\n", tmp_cnt); } - mylog(log_info,"breakloop() succeed after %lld attempt(s)\n", tmp_cnt); - if(1) { int ret=pcap_setdirection(pcap_handle,PCAP_D_IN);