Should consolidate to a single implementation of main()

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Andy Schwerin
              Reporter:
              Andy Schwerin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: