xref: /csrg-svn/lib/libc/vax/sys/cache.lib/x.c (revision 47918)
1*47918Sbostic /*-
247917Sbostic  * Copyright (c) 1989 The Regents of the University of California.
347917Sbostic  * All rights reserved.
447917Sbostic  *
5*47918Sbostic  * %sccs.include.redist.c%
647917Sbostic  */
747917Sbostic 
847917Sbostic #ifndef lint
947917Sbostic char copyright[] =
1047917Sbostic "@(#) Copyright (c) 1989 The Regents of the University of California.\n\
1147917Sbostic  All rights reserved.\n";
1247917Sbostic #endif /* not lint */
1347917Sbostic 
1447917Sbostic #ifndef lint
15*47918Sbostic static char sccsid[] = "@(#)x.c	5.2 (Berkeley) 04/12/91";
1647917Sbostic #endif /* not lint */
1747917Sbostic 
1847917Sbostic main()
1947917Sbostic {
2047917Sbostic 	register int i;
2147917Sbostic 
2247917Sbostic 	for (i = 0; i < 100000; i++)
2347917Sbostic 		if (vfork() == 0) {
2447917Sbostic 			printf("child: %d\n", getpid());
2547917Sbostic 			exit(0);
2647917Sbostic 		} else {
2747917Sbostic 			printf("parent: %d\n", getpid());
2847917Sbostic 			wait(0);
2947917Sbostic 		}
3047917Sbostic }
31