json input support, some shutdown fixes. json needs cleanup.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user