From: Jérémie Galarneau Date: Tue, 18 Dec 2018 19:01:08 +0000 (-0500) Subject: Fix: error logged on partial recvmsg() in MSG_DONTWAIT X-Git-Tag: v2.12.0-rc1~680 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=c2e8c3663b99ba900f4733696c70e7a5e32ae1a7;hp=c2e8c3663b99ba900f4733696c70e7a5e32ae1a7;p=lttng-tools.git Fix: error logged on partial recvmsg() in MSG_DONTWAIT The relay daemon logs a "Resource temporarily unavailable" error message when the lttcomm_recvmsg_inet_sock() is invoked and no data is left to be consumed from the lttcomm_sock. The "recvmsg" socket operation is called in a loop by the relay daemon to consume the data being received in 64k chunks. If, on one of those iterations, 0 bytes are available, recvmsg() will return an error (-1, errno = EAGAIN). This should not be logged in non-blocking mode. Signed-off-by: Jérémie Galarneau ---