Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1243817

poll() in Solaris iomgr.c computes timeout incorrectly

    XMLWordPrintable

Details

    • 1.0.2
    • sparc
    • generic
    • Not verified

    Description

          if (timeout > 0) {
              timeval_t tv;
              tv.tv_sec = timeout / 1000;
              tv.tv_usec = timeout % 1000;
              time_limit = currentTime();
              timerAdd(&time_limit, (timeval_t *) &tv);
          }

      The above piece of code from iomgr.c sets tv.tv_usec incorrectly. timeout is in
      milliseconds, but tv.tv_usec needs to be in microseconds.

      DREL 3/28/96

      Attachments

        Activity

          People

            tlindholsunw Timothy Lindholm (Inactive)
            dlong Dean Long
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: