3 /* Copyright (C) 1987 by Martin Leisner. All rights reserved. */
4 /* Used by permission. */
12 #define NUM_TIMES 1000
27 for (i
= 0; i
< NUM_TIMES
; i
++) switch (fork()) {
28 case 0: exit(1); break;
30 printf("fork broke\n");
32 default: wait(&k
); break;
36 return(-1); /* impossible */