From 2249eaebd4bde07e33f265e7eaac5ad85b5f1253 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=9A=D0=BE=D1=80=D0=B5=D0=BD=D0=B1=D0=B5=D1=80=D0=B3=20?= =?utf8?q?=D0=9C=D0=B0=D1=80=D0=BA=20=28=D0=B4=D0=BE=D0=BC=D0=B0=29?= Date: Fri, 19 Oct 2012 23:04:23 +0600 Subject: [PATCH] nl_recv(): EWOULDBLOCK return value also checked --- lib/nl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/nl.c b/lib/nl.c index d08f7e1..7f47223 100644 --- a/lib/nl.c +++ b/lib/nl.c @@ -475,9 +475,8 @@ retry: NL_DBG(3, "recvmsg() returned EINTR, retrying\n"); goto retry; } - - if (errno == EAGAIN) { - NL_DBG(3, "recvmsg() returned EAGAIN, aborting\n"); + if (errno == EAGAIN || errno == EWOULDBLOCK) { + NL_DBG(3, "recvmsg() returned EAGAIN||EWOULDBLOCK, aborting\n"); retval = 0; goto abort; } -- 2.40.0