Close stdout and stderr before exit, to make valgrind output easier reading.

This commit is contained in:
Ian Gulliver
2016-02-23 12:11:07 -08:00
parent ab6b8cd5e9
commit 49edb43232

View File

@@ -127,5 +127,8 @@ int main(int argc, char *argv[]) {
resolve_cleanup();
wakeup_cleanup();
assert(!close(1));
assert(!close(2));
return EXIT_SUCCESS;
}