Commit 5aea520
authored
Change
This changes from `EAGAIN` to `ENOTSUP` since this operation can't ever
succeed, it's entirely unsupported. This is in relation to
rust-lang/rust#151016 where in the Rust ecosystem crates were using the
"Unsupported" error kind to gracefully handle errors from spawning a
thread, such a falling back to single-threaded code. By switching to
`EAGAIN` it caused these graceful fallbacks to not get triggered.pthread_create stub's error code (#716)1 parent 60b2498 commit 5aea520
1 file changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 11 | + | |
17 | 12 | | |
18 | 13 | | |
19 | 14 | | |
0 commit comments