mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 22:09:49 +00:00
wasi: native os.abort
This commit is contained in:
parent
f8117a0799
commit
6fb677c4f6
@ -200,7 +200,7 @@ pub fn abort() noreturn {
|
||||
c.abort();
|
||||
}
|
||||
switch (builtin.os) {
|
||||
Os.linux, Os.macosx, Os.ios, Os.freebsd, Os.netbsd, Os.wasi => {
|
||||
Os.linux, Os.macosx, Os.ios, Os.freebsd, Os.netbsd => {
|
||||
_ = posix.raise(posix.SIGABRT);
|
||||
_ = posix.raise(posix.SIGKILL);
|
||||
while (true) {}
|
||||
@ -211,6 +211,12 @@ pub fn abort() noreturn {
|
||||
}
|
||||
windows.ExitProcess(3);
|
||||
},
|
||||
Os.wasi => {
|
||||
_ = wasi.proc_raise(wasi.SIGABRT);
|
||||
// TODO: Is SIGKILL even necessary?
|
||||
_ = wasi.proc_raise(wasi.SIGKILL);
|
||||
while (true) {}
|
||||
},
|
||||
Os.uefi => {
|
||||
// TODO there's gotta be a better thing to do here than loop forever
|
||||
while (true) {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user