From 931029b9cbaca1c356a595ad4a9e1491022127cb Mon Sep 17 00:00:00 2001 From: wangchen Date: Thu, 14 Mar 2024 20:48:18 +0800 Subject: [PATCH] local_sendpacket.c:setting "EAGAIN" not as a error level Signed-off-by: wangchen --- net/local/local_sendpacket.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/local/local_sendpacket.c b/net/local/local_sendpacket.c index 2f9c6f42ec..939dde1169 100644 --- a/net/local/local_sendpacket.c +++ b/net/local/local_sendpacket.c @@ -183,7 +183,11 @@ int local_send_packet(FAR struct file *filep, FAR const struct iovec *buf, ret = local_fifo_write(filep, iov->iov_base, iov->iov_len); if (ret < 0) { - nerr("ERROR: local send packet failed ret: %d\n", ret); + if (ret != -EAGAIN) + { + nerr("ERROR: local send packet failed ret: %d\n", ret); + } + break; }