Repository navigation
Commit b332c84
Use pthread_sigmask on macOS/BSD for thread-safe signal masking
On macOS and BSD systems, sigprocmask() only affects the calling thread,
not the entire process. In multi-threaded applications, pthread_sigmask()
should be used instead to ensure proper signal mask behavior across all
threads.
This fixes a test failure in net.test.tcpConnectToHost on macOS where the
multi-threaded runtime's signal mask state was causing issues.
Co-authored-by: Lukáš Lalinský <[email protected]>1 parent aa6b9a3 commit b332c84
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
91 | 100 | | |
92 | 101 | | |
93 | 102 | | |
| |||
108 | 117 | | |
109 | 118 | | |
110 | 119 | | |
111 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
112 | 129 | | |
113 | 130 | | |
114 | 131 | | |
| |||
0 commit comments