Oops, uncomment the forking test.
@@ -694,12 +694,12 @@ void defer_test(void) {
"defer_perform returned. i_count = %lu, %lu/%lu free/malloc\n",
i_count, count_dealloc, count_alloc);
- // fprintf(stderr, "press ^C to finish PID test\n");
- // defer(pid_task, "pid test", NULL);
- // if (defer_perform_in_fork(4, 64) > 0) {
- // fprintf(stderr, "* %d finished\n", getpid());
- // exit(0);
- // };
+ fprintf(stderr, "press ^C to finish PID test\n");
+ defer(pid_task, "pid test", NULL);
+ if (defer_perform_in_fork(4, 64) > 0) {
+ fprintf(stderr, "* %d finished\n", getpid());
+ exit(0);
+ };
fprintf(stderr, "* Defer queue %lu/%lu free/malloc\n", count_dealloc,
count_alloc);
defer_clear_queue();
