Files
  • main.c
main.c
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
#include <unistd.h>

int main(void) {
  pid_t pid1;
	pid1 = fork();
	printf("After first fork %d\n", pid1);
	fork();
	printf("After second fork\n");

  return 0;
}