#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>

int main(int argc, char const *argv[]) {

  pid_t id_fork = fork();

  pid_t pid  = getpid();
  pid_t ppid = getppid();

  printf("Valeur de fork : %d\n",id_fork);

  if (id_fork==0) {
    printf("Je suis le fils : ");
  }else{
      printf("Je suis le père : ");
  }

  printf("pid : %d, ppid : %d\n",pid,ppid);

  return 0;
}
