| ... | @@ -213,7 +213,14 @@ pub fn exit(status: u8) noreturn { | ... | @@ -213,7 +213,14 @@ pub fn exit(status: u8) noreturn { |
| 213 | c.exit(status); | 213 | c.exit(status); |
| 214 | } | 214 | } |
| 215 | switch (builtin.os) { | 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 | posix.exit(status); | 224 | posix.exit(status); |
| 218 | }, | 225 | }, |
| 219 | Os.windows => { | 226 | Os.windows => { |