Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15473

Investigate changes in SERVER-9434: Process exit codes should be between 0 and 255

      Required Changes

       

      Original Downstream Change Summary

      Need to update this user-facing page:
      https://www.mongodb.com/docs/v5.0/reference/exit-codes/

      Description of Linked Ticket

      According to the various standards governing Unix-y systems, only the low-order 8 bits of exit codes are returned to parent processes, meaning that parent processes only see exit code values between 0 and 255.

      Several MongoDB executables use negative numbers for error exit codes, so _exit(-3) shows up in the shell as exit code 253.

      Windows does not follow this convention, so _exit(-3) shows an exit code of -3.

      It would enhance cross-platform compatibility and assist documentation if exit codes were restricted to values that will work on all platforms.

            Assignee:
            nick.villahermosa@mongodb.com Nick Villahermosa
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              1 year, 24 weeks, 1 day ago