projects
/
remotetop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More nice cleanup on exit
[remotetop.git]
/
topd.c
diff --git
a/topd.c
b/topd.c
index
61a2245
..
47f2629
100644
(file)
--- 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);
TC_deleteConnectionByN(&cfg.pool, 1);
TC_deleteConnectionByN(&cfg.pool, 0);
- for(i=TC_SERVER_CONN_START; i<cfg.pool.number; i++)
- TC_deleteConnectionByN(&cfg.pool,i);
}
}
if (child == -1)
}
}
if (child == -1)