Default implementations of sleepsecs and sleepmicros do not handle EINTR

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.2.0-rc3
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Platform C (11/20/15)
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The default implementation of these functions uses nanosleep which can return with EINTR, but this return value is not handled. To be strictly correct, the functions must be written as loops which evaluate whether the intended interval has elapsed if woken with EINTR and continuing with the 'rmtp' interval.

      In addition, these function log to std::cout on a non-zero return from nanosleep, which hardly seems helpful.

            Assignee:
            Mira Carey
            Reporter:
            Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: