afl-fuzz.c
void stop_forkserver(int * fork_PID, int * fsrv_ctlFD, int * fsrv_stFD){

  /* Terminates either binary's forkserver. */

  int status;

  /* Instead of telling the target binary forkserver to run another iteration,
   * tell it to die. */
  
  if (write(*fsrv_ctlFD, &status, 2) != 2)
    PFATAL("Forkserver-stop write() failed");

  /* Close open ends of pipe. */
  
  close(*fsrv_ctlFD);
  close(*fsrv_stFD);

  /* Make sure the process dies. */
  
  if (waitpid(*fork_PID, &status, 0) <= 0) 
    PFATAL("Forkserver-stop waitpid() failed");
}
/* Stop the old fork server (instrumented mode only). Created by LH. */
Stop the old fork server (instrumented mode only). Created by LH.
Stop the old fork server ( instrumented mode only ) . Created by LH .
void stop_forkserver(int * fork_PID, int * fsrv_ctlFD, int * fsrv_stFD){
  int status;
  if (write(*fsrv_ctlFD, &status, 2) != 2)
    PFATAL("Forkserver-stop write() failed");
  close(*fsrv_ctlFD);
  close(*fsrv_stFD);
  if (waitpid(*fork_PID, &status, 0) <= 0) 
    PFATAL("Forkserver-stop waitpid() failed");
}
void stop_forkserver ( int * fork_PID , int * fsrv_ctlFD , int * fsrv_stFD ) { int status ; if ( write ( * fsrv_ctlFD , & status , 2 ) != 2 ) PFATAL ( " " ) ; close ( * fsrv_ctlFD ) ; close ( * fsrv_stFD ) ; if ( waitpid ( * fork_PID , & status , 0 ) <= 0 ) PFATAL ( " " ) ; }
Stop the old fork server (instrumented mode only).
Stop the old fork server ( instrumented mode only ) .
/* Terminates either binary's forkserver. */ /* Instead of telling the target binary forkserver to run another iteration,
   * tell it to die. */ /* Close open ends of pipe. */ /* Make sure the process dies. */