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

int main(int argc, char **argv)
{
  pid_t pid1, pid2;

  pid1 = fork();
  if (pid1 < 0) {
    fprintf(stderr,"Error: can't fork a process\n");
    perror("fork()");
    exit(1);
  }

  fprintf(stdout,"hello\n");

  pid2 = fork();
  if (pid1 < 0) {
    fprintf(stderr,"Error: can't fork a process\n");
    perror("fork()");
    exit(1);
  }

  fprintf(stdout,"hello\n");
  exit(0);
}

