File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -59,23 +59,21 @@ struct tcp_keepalive
5959static inline int poll (struct pollfd *pfd, unsigned long nfds, int timeout)
6060{
6161 int rc = WSAPoll (pfd, nfds, timeout);
62- if (rc == -1 )
63- {
64- int wsaError = WSAGetLastError ();
65- switch (wsaError)
66- {
67- // let these conditions appear as an interrupted call to
68- // simplify downstream error processing.
69- case WSAENETDOWN:
70- case WSAENOBUFS:
71- errno = EINTR;
72- break ;
73-
74- default :
75- errno = zmq::wsa_error_to_errno (wsaError);
76- break ;
62+ if (rc == -1 ) {
63+ int wsaError = WSAGetLastError ();
64+ switch (wsaError) {
65+ // let these conditions appear as an interrupted call to
66+ // simplify downstream error processing.
67+ case WSAENETDOWN:
68+ case WSAENOBUFS:
69+ errno = EINTR;
70+ break ;
71+
72+ default :
73+ errno = zmq::wsa_error_to_errno (wsaError);
74+ break ;
7775 }
78- }
76+ }
7977
8078 return rc;
8179}
You can’t perform that action at this time.
0 commit comments