pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:4499:    {    for(;;)    {    double left;    /* THREADS_ALLOW may take longer time then POLL_SLEEP_LIMIT */    THREADS_ALLOW();    FIX_LEFT();    if(left>0.0)    sysleep(left);    THREADS_DISALLOW(); -  if(do_abort_on_signal) +  if(do_abort_on_signal) { +  GETTIMEOFDAY (&current_time);    return; -  +  }    FIX_LEFT();    if(left<=0.0)    break;    check_threads_etc();    } -  +  GETTIMEOFDAY (&current_time);    }       if (do_microsleep)    while (delay>TIME_ELAPSED)    GET_TIME_ELAPSED;   }      /*! @decl void sleep(int|float s, void|int abort_on_signal)    *!    *! This function makes the program stop for @[s] seconds.