main() { int n; for(n = 0; n<10 ; n++ ) { printf("my pid = %d, n = %d\n", getpid(), n); sleep(1); if ( fork() != 0 ) /* what if these two */ exit(0); /* lines were removed? */ } }