Close stdout and stderr before exit, to make valgrind output easier reading.
This commit is contained in:
@@ -127,5 +127,8 @@ int main(int argc, char *argv[]) {
|
||||
resolve_cleanup();
|
||||
wakeup_cleanup();
|
||||
|
||||
assert(!close(1));
|
||||
assert(!close(2));
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user