| 237 | |
| 238 | #if 0 |
| 239 | extern "C" int |
| 240 | getsockopt(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 | |
| 255 | extern "C" int |
no test coverage detected