Skip to content

Commit 438b4cb

Browse files
committed
Review
1 parent 1ab1adf commit 438b4cb

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

site/source/docs/tools_reference/settings_reference.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,16 @@ exception, but will not shut down the runtime.
9595
Set this to 1 if you do want to retain the ability to shut down the program.
9696
If 1, then completing main() will by default call exit(), unless a refcount
9797
keeps the runtime alive. Call emscripten_exit_with_live_runtime() to finish
98-
main() while keeping the runtime alive. Calling exit() will shut down the
99-
runtime, invoking atexit()s, and flushing stdio streams.
98+
main() while keeping the runtime alive. Calling emscripten_force_exit() will
99+
shut down the runtime, invoking atexit()s, and flushing stdio streams.
100100
This setting is controlled automatically in STANDALONE_WASM mode:
101101

102102
- For a command (has a main function) this is always 1
103103
- For a reactor (no main function) this is always 0
104104

105+
For more details, see documentation for emscripten_force_exit() and
106+
emscripten_exit_with_live_runtime().
107+
105108
Default value: false
106109

107110
.. _stack_size:

src/settings.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,15 @@ var INVOKE_RUN = true;
9393
// Set this to 1 if you do want to retain the ability to shut down the program.
9494
// If 1, then completing main() will by default call exit(), unless a refcount
9595
// keeps the runtime alive. Call emscripten_exit_with_live_runtime() to finish
96-
// main() while keeping the runtime alive. Calling exit() will shut down the
97-
// runtime, invoking atexit()s, and flushing stdio streams.
96+
// main() while keeping the runtime alive. Calling emscripten_force_exit() will
97+
// shut down the runtime, invoking atexit()s, and flushing stdio streams.
9898
// This setting is controlled automatically in STANDALONE_WASM mode:
9999
//
100100
// - For a command (has a main function) this is always 1
101101
// - For a reactor (no main function) this is always 0
102102
//
103+
// For more details, see documentation for emscripten_force_exit() and
104+
// emscripten_exit_with_live_runtime().
103105
// [link]
104106
var EXIT_RUNTIME = false;
105107

0 commit comments

Comments
 (0)