pthread_sigmask shouldn't return EINTR, but we can check.
| 84 | |
| 85 | // pthread_sigmask shouldn't return EINTR, but we can check. |
| 86 | static inline void PthreadSetSigmask(const sigset_t *mask) { |
| 87 | while (pthread_sigmask(SIG_SETMASK, mask, nullptr) < 0 && errno == EINTR) { |
| 88 | continue; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | /* |
| 93 | * Run a thread that (among whatever else it does) makes system calls, |
no outgoing calls
no test coverage detected