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

Should consolidate to a single implementation of main()

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None

      As part of SERVER-5520, we should get down to a single implementation of main() that never returns, but calls _exit(), instead, as part of a move toward not executing static destructors.

      Basically, we'd have a generic main:
      int main(...) {
      initMongoOrDie();
      int returnCode = mongoMain(argc, argv);
      _exit(returnCode);
      }

      And then programs would implement their own mongoMain().

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: