-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Required Changes
- Update the exit code reference under reference/exit-codes to match the changes from https://github.com/10gen/mongo/commit/c44db4ac9d0c4c368835dac9f2fbd5869d885f17#
- This change is not backported to prior versions.
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.
- documents
-
SERVER-9434 Process exit codes should be between 0 and 255
- Closed