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

int main() {
  pid_t pid;
  int look_at_this;
  
  look_at_this = 99;
  
  if ((pid = fork()) < 0) {
    perror("fork()");
    exit(1);
  } else if (pid == 0) {
    /* CHILD PROCESS */
    look_at_this = 33;  /* <<<<<< changing look_at_this here */
    exit(0);            /* child process terminates here */
  }
  
  /* PARENT PROCESS */
  wait(NULL);  /* wait until child terminates */
  printf("The value of look_at_this is %d\n", look_at_this);
  exit(0);
}
