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