X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fbin%2Fmemaslap%2Fms_conn.c;fp=src%2Fbin%2Fmemaslap%2Fms_conn.c;h=f4375ae87bea7c318859d550fcd8b19b0991615b;hb=9c59f89a7fc736cd26a2d271ac56afd37c42237b;hp=49b50121f099a372459c372538cb4d8202c2ee4c;hpb=f2ab0a0c16503c35c23c6ad1ba11913d054ccdad;p=awesomized%2Flibmemcached diff --git a/src/bin/memaslap/ms_conn.c b/src/bin/memaslap/ms_conn.c index 49b50121..f4375ae8 100644 --- a/src/bin/memaslap/ms_conn.c +++ b/src/bin/memaslap/ms_conn.c @@ -605,7 +605,7 @@ static void ms_conn_close(ms_conn_t *c) { } if (ms_thread->nactive_conn == 0) { - pthread_exit(NULL); + event_base_loopbreak(ms_thread->base); } } /* ms_conn_close */