Lines Matching refs:pair2
396 evutil_socket_t pair1[2]={-1,-1}, pair2[2] = {-1, -1}; in test_simpleclose() local
410 if (evutil_socketpair(LOCAL_SOCKETPAIR_AF, SOCK_STREAM, 0, pair2)<0) in test_simpleclose()
414 if (evutil_make_socket_nonblocking(pair2[1]) < 0) in test_simpleclose()
419 int r = write(pair2[1], buf, sizeof(buf)); in test_simpleclose()
421 int err = evutil_socket_geterror(pair2[1]); in test_simpleclose()
429 to_close[1] = &pair2[0]; in test_simpleclose()
436 wev = event_new(base, pair2[1], EV_WRITE, record_event_cb, in test_simpleclose()
438 TT_BLATHER(("Waiting for write on %d", (int)pair2[1])); in test_simpleclose()
460 if (pair2[0] >= 0) in test_simpleclose()
461 evutil_closesocket(pair2[0]); in test_simpleclose()
462 if (pair2[1] >= 0) in test_simpleclose()
463 evutil_closesocket(pair2[1]); in test_simpleclose()