MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / patchBSDMask

Function patchBSDMask

src/signalwrappers.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65# define sigmask(sig) ((int)(1u << ((sig) - 1)))
66#endif
67static int
68patchBSDMask(int mask)
69{
70 const int allowedMask = ~sigmask(bannedSignalNumber());
71
72 return mask & allowedMask;
73}
74
75static inline void
76patchBSDUserMask(int how, const int mask, int *oldmask)

Callers 2

sigblockFunction · 0.85
sigsetmaskFunction · 0.85

Calls 1

bannedSignalNumberFunction · 0.85

Tested by

no test coverage detected