etc/services - sync with NetBSD-8
[minix.git] / minix / tests / test12.c
blobff90822d6201f0474ff8b09c92b5f89211572d86
1 /* test 12 */
3 /* Copyright (C) 1987 by Martin Leisner. All rights reserved. */
4 /* Used by permission. */
6 #include <sys/types.h>
7 #include <sys/wait.h>
8 #include <stdlib.h>
9 #include <unistd.h>
10 #include <stdio.h>
12 #define NUM_TIMES 1000
13 int max_error = 2;
14 #include "common.h"
18 int main(void);
20 int main()
22 register int i;
23 int k;
25 start(12);
27 for (i = 0; i < NUM_TIMES; i++) switch (fork()) {
28 case 0: exit(1); break;
29 case -1:
30 printf("fork broke\n");
31 exit(1);
32 default: wait(&k); break;
35 quit();
36 return(-1); /* impossible */