fuzzotron.c
int check_stop(void * cases, int result){
    int ret = 0;

    usleep(50000);

    printf("now server pid: %d\n", check_pid);
    if(regx == 1){
        // We have experienced a crash. set the global stop var
        pthread_mutex_lock(&runlock);
        stop = 1;
        save_testcases(cases, output_dir);
        pthread_mutex_unlock(&runlock);
        return -1;
    }
    usleep(500000);

    // If process id is supplied, check it exists and set stop if it doesn't
    check_pid = runpro(server_command);
    if(check_pid<=0){
        printf("server is not running *****************************\n");
        return -1;
    }

    return 0;
}
// checks the return code from send_cases et-al and sets the global stop variable if
// its time to stop fuzzing and saves the cases.
checks the return code from send_cases et-al and sets the global stop variable if
its time to stop fuzzing and saves the cases.
checks the return code from send_cases et - al and sets the global stop variable if its time to stop fuzzing and saves the cases .
int check_stop(void * cases, int result){
    int ret = 0;
    usleep(50000);
    printf("now server pid: %d\n", check_pid);
    if(regx == 1){
        pthread_mutex_lock(&runlock);
        stop = 1;
        save_testcases(cases, output_dir);
        pthread_mutex_unlock(&runlock);
        return -1;
    }
    usleep(500000);
    check_pid = runpro(server_command);
    if(check_pid<=0){
        printf("server is not running *****************************\n");
        return -1;
    }
    return 0;
}
int check_stop ( void * cases , int result ) { int ret = 0 ; usleep ( 50000 ) ; printf ( " \n " , check_pid ) ; if ( regx == 1 ) { pthread_mutex_lock ( & runlock ) ; stop = 1 ; save_testcases ( cases , output_dir ) ; pthread_mutex_unlock ( & runlock ) ; return -1 ; } usleep ( 500000 ) ; check_pid = runpro ( server_command ) ; if ( check_pid <= 0 ) { printf ( " \n " ) ; return -1 ; } return 0 ; }
checks the return code from send_cases et-al and sets the global stop variable if
its time to stop fuzzing and saves the cases.
checks the return code from send_cases et - al and sets the global stop variable if its time to stop fuzzing and saves the cases .
// We have experienced a crash. set the global stop var // If process id is supplied, check it exists and set stop if it doesn't