You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Don't call `exitRuntime()` when `ENVIRONMENT_IS_PTHREAD` is true.
- Remove the early return from `exitRuntime()`.
- Rework if/else statements in `$exitJS()`.
// if exit() was called explicitly, warn the user if the runtime isn't actually being shut down
102
103
if(keepRuntimeAlive()&&!implicit){
103
-
#if !EXIT_RUNTIME
104
-
varmsg='program exited (with status: '+status+'), but EXIT_RUNTIME is not set, so halting execution but not exiting the runtime or preventing further async execution (build with EXIT_RUNTIME=1, if you want a true shutdown)';
105
-
#else
104
+
#if EXIT_RUNTIME
106
105
varmsg='program exited (with status: '+status+'), but keepRuntimeAlive() is set (counter='+runtimeKeepaliveCounter+') due to an async operation, so halting execution but not exiting the runtime or preventing further async execution (you can use emscripten_force_exit, if you want to force a true shutdown)';
106
+
#else
107
+
varmsg='program exited (with status: '+status+'), but EXIT_RUNTIME is not set, so halting execution but not exiting the runtime or preventing further async execution (build with EXIT_RUNTIME=1, if you want a true shutdown)';
Copy file name to clipboardExpand all lines: src/worker.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -266,7 +266,7 @@ self.onmessage = (e) => {
266
266
}
267
267
#if ASSERTIONS
268
268
}else{
269
-
// else e == 'unwind', and we should fall through here and keep the pthread alive for asynchronous events.
269
+
// else ex == 'unwind', and we should fall through here and keep the pthread alive for asynchronous events.
270
270
err('Pthread 0x'+Module['_pthread_self']().toString(16)+' completed its main entry point with an `unwind`, keeping the worker alive for asynchronous operation.');
0 commit comments