From 29897b90ce41190ea0a3a06fcf5b8e6e5d39b627 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 15 May 2012 14:30:36 +0200 Subject: minor issue: tcpsrv did not decrement wrkr cnt on shutdown I am not really sure if that is an issue at all, at least it is inconsistent. --- tcpsrv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tcpsrv.c b/tcpsrv.c index b5b64f07..f98d238b 100644 --- a/tcpsrv.c +++ b/tcpsrv.c @@ -625,8 +625,10 @@ wrkr(void *myself) while(me->pSrv == NULL && glbl.GetGlobalInputTermState() == 0) { pthread_cond_wait(&me->run, &wrkrMut); } - if(glbl.GetGlobalInputTermState() == 1) + if(glbl.GetGlobalInputTermState() == 1) { + --wrkrRunning; break; + } pthread_mutex_unlock(&wrkrMut); ++me->numCalled; -- cgit