From: teodor Date: Thu, 29 Nov 2007 19:43:57 +0000 (+0000) Subject: More nice cleanup on exit X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=ade978063f7685fe20fb8699761f56defd3bf0ee;p=remotetop.git More nice cleanup on exit --- diff --git a/topd.c b/topd.c index 61a2245..47f2629 100644 --- a/topd.c +++ b/topd.c @@ -144,10 +144,10 @@ main( int argc, char *argv[] ) { } } + for(i=cfg.pool.number-1; i>TC_SERVER_CONN_START; i--) + TC_deleteConnectionByN(&cfg.pool,i); TC_deleteConnectionByN(&cfg.pool, 1); TC_deleteConnectionByN(&cfg.pool, 0); - for(i=TC_SERVER_CONN_START; i