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

Function getsockopt

src/plugin/ipc/socket/socketwrappers.cpp:239–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237
238#if 0
239extern "C" int
240getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen)
241{
242 /* We don't want to acquire the lock here as this is not needed. Also,
243 * aquiring the lock here might cause a deadlock when this function is called
244 * from within connect(). Here is the deadlock situation:
245 * User-thread connect(): acquire lock
246 * Ckpt-thread ckpt(): Queued on wr-lock
247 * User-thread getsockopt(): block on read lock().
248 */
249 int ret = _real_getsockopt(sockfd, level, optname, optval, optlen);
250
251 PASSTHROUGH_DMTCP_HELPER(getsockopt, sockfd, level, optname, optval, optlen);
252}
253#endif // if 0
254
255extern "C" int

Callers 2

scaleSendBuffersFunction · 0.85
drainMethod · 0.85

Calls 1

_real_getsockoptFunction · 0.50

Tested by

no test coverage detected