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

Issue a clear error message when `--fork` is used in macOS

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • Fully Compatible
    • Programmability 2025-03-17, Programmability 2025-03-31
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Fork-without-exec causes problems with Apple's frameworks. Some documented examples of this are here, here, here, and here. We ran into this issue in the linked HELP ticket. For these reasons, we should not be supporting this idiom. Users can replace `mongod [options] --fork --logpath <logfile>` with `nohup mongod [options] --logpath <logfile> >/dev/null &` for similar behavior.

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            gabriel.marks@mongodb.com Gabriel Marks
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: