5 void *flushthread(void *arg __unused)
8 _objc_flush_caches(nil);
15 pthread_create(&th, nil, &flushthread, nil);
22 int max = is_guardmalloc() ? 10: 100;
24 for (int i = 0; i < max; i++) {
26 switch ((child = fork())) {
37 while (waitpid(child, &result, 0) < 0) {
39 fail("waitpid failed (errno %d %s)",
40 errno, strerror(errno));
43 if (!WIFEXITED(result)) {
44 fail("child crashed (waitpid result %d)", result);
53 succeed(__FILE__ " parent");