Fix `/etc/rc.d/dhclient stop' by explicitly returning 0, otherwise
[dragonfly.git] / test / sysperf / fork1.c
blobe36e3ad2e6fbc21e76dd768780cadfdd0585c6f9
1 /*
2 * fork1.c
4 * $DragonFly: src/test/sysperf/fork1.c,v 1.1 2003/08/12 02:29:44 dillon Exp $
5 */
7 #include "blib.h"
9 int
10 main(int ac, char **av)
12 int j;
14 start_timing();
15 for (j = 0; j < 10000; ++j) {
16 if (fork() == 0) {
17 _exit(1);
18 } else {
19 while (wait(NULL) > 0);
22 stop_timing(j, "fork/exit/wait:");
23 return(0);