Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-3179

ats_scoped_fd should not provide boolean operators

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.2.0
    • Core
    • None

    Description

      The boolean operators for ats_scoped_fd are a compile problem in some supported compilers. They are also inappropriate for a file descriptor as they encourage uses which are different (and wrong) for file descriptors, which should be checked for being negative rather than directly as booleans.

      Attachments

        Activity

          People

            amc Alan M. Carroll
            amc Alan M. Carroll
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: