MCPcopy Create free account
hub / github.com/NetSys/bess / PthreadSetSigmask

Function PthreadSetSigmask

core/utils/syscallthread.cc:86–90  ·  view source on GitHub ↗

pthread_sigmask shouldn't return EINTR, but we can check.

Source from the content-addressed store, hash-verified

84
85// pthread_sigmask shouldn't return EINTR, but we can check.
86static 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,

Callers 2

RunInThreadMethod · 0.85
BlockSignalsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected