Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Gone away
-
None
-
None
-
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
Issue Links
- is depended on by
-
SERVER-5520 Shutdown rewrite (tracking ticket)
-
- Closed
-