From: teodor Date: Thu, 29 Nov 2007 19:42:47 +0000 (+0000) Subject: Nice cleanup on exit X-Git-Url: http://www.sigaev.ru/git/gitweb.cgi?p=remotetop.git;a=commitdiff_plain;h=c8fbca8cf28e2c4489ce51da57c68b03c8199521 Nice cleanup on exit --- diff --git a/topd.c b/topd.c index 5dedced..61a2245 100644 --- a/topd.c +++ b/topd.c @@ -143,8 +143,9 @@ main( int argc, char *argv[] ) { } } } + + TC_deleteConnectionByN(&cfg.pool, 1); TC_deleteConnectionByN(&cfg.pool, 0); - close( cfg.pool.conn[1]->fd ); for(i=TC_SERVER_CONN_START; i