| author | |
| committer | |
| log | 85575704a4c1939f25414bc585a72bd940e85ceb |
| tree | a99bbf7562d103e068f3b8151879dfe75715dec3 |
| parent | 5942797000936394a7ed68806df56c02ca5d2b44 |
1 files changed, 8 insertions(+), 1 deletions(-)
std/os.zig+8-1| ... | ... | @@ -213,7 +213,14 @@ pub fn exit(status: u8) noreturn { |
| 213 | 213 | c.exit(status); |
| 214 | 214 | } |
| 215 | 215 | switch (builtin.os) { |
| 216 | Os.linux, Os.macosx, Os.ios, Os.freebsd, Os.netbsd => { | |
| 216 | Os.linux => { | |
| 217 | if (builtin.single_threaded) { | |
| 218 | linux.exit(status); | |
| 219 | } else { | |
| 220 | linux.exit_group(status); | |
| 221 | } | |
| 222 | }, | |
| 223 | Os.macosx, Os.ios, Os.freebsd, Os.netbsd => { | |
| 217 | 224 | posix.exit(status); |
| 218 | 225 | }, |
| 219 | 226 | Os.windows => { |