#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>

int main(){
  int i, n; 
  pid_t childpid;
  n = 5;
  for (i = 1; i < n;  ++i)
    if ((childpid = fork()))  break;
  printf("Jestem procesem nr %i (moj PID: %i, moj PPID: %i).\n", i, getpid(), getppid());
  sleep(5);
  return 0;
}

