json input support, some shutdown fixes. json needs cleanup.

This commit is contained in:
Ian Gulliver
2016-02-23 13:49:23 -08:00
parent 07d273236d
commit d2e521e90c
14 changed files with 212 additions and 23 deletions

View File

@@ -116,8 +116,12 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}
assert(!close(1));
peer_loop();
json_cleanup();
receive_cleanup();
send_cleanup();
incoming_cleanup();
@@ -127,7 +131,8 @@ int main(int argc, char *argv[]) {
resolve_cleanup();
wakeup_cleanup();
assert(!close(1));
peer_cleanup();
assert(!close(2));
return EXIT_SUCCESS;