Compare commits

...

1 Commits

Author SHA1 Message Date
Jarred Sumner
19cf8b3c67 Another attempt at fixing Windows crash at exit 2024-10-31 13:40:25 -07:00

View File

@@ -118,6 +118,11 @@ pub fn exit(code: u32) noreturn {
switch (Environment.os) {
.mac => std.c.exit(@bitCast(code)),
.windows => {
Bun__onExit();
_ = bun.windows.TerminateProcess(bun.windows.GetCurrentProcess(), @bitCast(code));
unreachable;
},
else => bun.C.quick_exit(@bitCast(code)),
}
}