Result of gettimeofday() is not checked

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Platforms 16 (06/24/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      As SERVER-4740 explains, the server shouldn't use gettimeofday() for timing. However, the code currently does, and it doesn't check whether the call succeeded or not. If gettimeofday() returns -1 (not 0), then the call has failed and the values in the timeval struct shouldn't be used (they may not have even been initialised).

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: