xref: /csrg-svn/lib/libc/vax/sys/cache.lib/x.c (revision 61226)
147918Sbostic /*-
2*61226Sbostic  * Copyright (c) 1989, 1993
3*61226Sbostic  *	The Regents of the University of California.  All rights reserved.
447917Sbostic  *
547918Sbostic  * %sccs.include.redist.c%
647917Sbostic  */
747917Sbostic 
847917Sbostic #ifndef lint
9*61226Sbostic static char copyright[] =
10*61226Sbostic "@(#) Copyright (c) 1989, 1993\n\
11*61226Sbostic 	The Regents of the University of California.  All rights reserved.\n";
1247917Sbostic #endif /* not lint */
1347917Sbostic 
1447917Sbostic #ifndef lint
15*61226Sbostic static char sccsid[] = "@(#)x.c	8.1 (Berkeley) 06/04/93";
1647917Sbostic #endif /* not lint */
1747917Sbostic 
main()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