Switch from sketchy dup() juggling to callbacks to retry outgoing connection.

This commit is contained in:
Ian Gulliver
2016-02-24 20:15:09 -08:00
parent 63f5313b96
commit 1635534243
14 changed files with 83 additions and 68 deletions

View File

@@ -114,7 +114,7 @@ int main(int argc, char *argv[]) {
stats_init();
if (!parse_opts(argc, argv)) {
return EXIT_FAILURE;
peer_shutdown();
}
assert(!close(1));