The first a bug in pax and should be commited to FBSD, too.
[dragonfly.git] / test / sysperf / fork1.c
1 /*
2  * fork1.c
3  *
4  * $DragonFly: src/test/sysperf/fork1.c,v 1.1 2003/08/12 02:29:44 dillon Exp $
5  */
6
7 #include "blib.h"
8
9 int
10 main(int ac, char **av)
11 {
12     int j;
13
14     start_timing();
15     for (j = 0; j < 10000; ++j) {
16         if (fork() == 0) {
17             _exit(1);
18         } else {
19             while (wait(NULL) > 0);
20         }
21     }
22     stop_timing(j, "fork/exit/wait:");
23     return(0);
24 }
25