Skip to content

Commit 545d6a3

Browse files
committed
Fix Linux webview exit behavior
1 parent c9bbfc1 commit 545d6a3

4 files changed

Lines changed: 106 additions & 263 deletions

File tree

examples/shared/demo_runner.zig

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,6 @@ pub fn runExample(comptime kind: ExampleKind, comptime RpcMethods: type) !void {
274274
}
275275

276276
service.shutdown();
277-
278-
if (builtin.os.tag == .linux) {
279-
const render_state = service.runtimeRenderState();
280-
if (render_state.active_surface == .native_webview) {
281-
// WebKitGTK can assert during libc exit teardown when internal
282-
// global destructors run off its expected UI thread.
283-
// Examples exit with _exit() in native-webview mode to avoid the
284-
// close-time abort path.
285-
std.posix.exit(0);
286-
}
287-
}
288277
}
289278

290279
fn shouldAutoOpenTab(spec: RunModeSpec) bool {

0 commit comments

Comments
 (0)