RunTime
From ArachneWiki
The module RunTime creates an appropriate run-time environment for executable modules. It is typically used by calling the function RunTime() at the beginning of a main function. It does the following:
- Decouples C-style
stdiofrom C++-stylecin,cout,cerr. - Disables core dumps.
- Sets up a handler for memory allocation failures.
- Checks that enough stack space has been allocated (via
limit stacksize 100000). - Sets up a handler for manual interrupts (Ctrl-C).
- Sets up automatic stack traces (with MemTracker) in the event of segmentation fault.
- Locks the currently running binary executable.
