Ignore:
Timestamp:
02/16/10 19:52:47 (11 years ago)
Author:
alno
Message:

WebIf:

  • Merging revisions 1576-1585 of trunk (ump1688)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/oscam-simples.c

    r1491 r1587  
    313313}
    314314
    315 void cs_sleepms(int msec)
    316 {
    317   struct timeval tv;
    318   tv.tv_sec = msec / 1000;
    319   tv.tv_usec = (msec % 1000) * 1000;
    320   select(0, 0, 0, 0, &tv);
     315void cs_sleepms(unsigned int msec)
     316{
     317    //does not interfere with signals like sleep and usleep do
     318    struct timespec req_ts;
     319    req_ts.tv_sec = msec/1000;
     320    req_ts.tv_nsec = (msec % 1000) * 1000000L;
     321    nanosleep (&req_ts, NULL);
    321322}
    322323
Note: See TracChangeset for help on using the changeset viewer.