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

Should consolidate to a single implementation of main()

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • None

    Description

      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().

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: