Commit 930971c
committed
Fix implicit pthread_exit on main thread return (closes #1767)
According to pthread_exit man page, returning from a thread function implicitly calls pthread_exit only on non-main threads.
This avoids a strange cast (with overflow check) at normal return from main.1 parent c27fb50 commit 930971c
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2058 | 2058 | | |
2059 | 2059 | | |
2060 | 2060 | | |
2061 | | - | |
2062 | | - | |
2063 | | - | |
2064 | | - | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
2065 | 2067 | | |
2066 | 2068 | | |
2067 | 2069 | | |
| |||
0 commit comments