Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5727

log rotate() is missing a lot of error checking

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Logging
    • ALL

    Description

      The following functions in rotate() need to have their return statuses checked for errors so we don't have confusing behavior when things fail silently:
      rename()
      CreateFileA()
      freopen()
      dup2()

      If these functions fail, we should write to stderr and translate errno.

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: