aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcp.c b/tcp.c
index 68437f2..baf3c08 100644
--- a/tcp.c
+++ b/tcp.c
@@ -1885,7 +1885,7 @@ recvmmsg:
sendmmsg:
ret = sendmmsg(c->fd_tap, tcp_l2_mh_tap, mh - tcp_l2_mh_tap,
MSG_NOSIGNAL | MSG_DONTWAIT);
- if (ret < 0 && ret == EINTR)
+ if (ret < 0 && errno == EINTR)
goto sendmmsg;
if (ret <= 0)