From 88a3fda36aa2b9f0e6d6f0177a3816dcbebde97f Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Tue, 26 Sep 2017 16:33:56 +0200 Subject: [PATCH] netty: check result of UDP sendto --- repos/libports/src/test/netty/udp/main.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repos/libports/src/test/netty/udp/main.cc b/repos/libports/src/test/netty/udp/main.cc index 65257e7ec4..2663724d1c 100644 --- a/repos/libports/src/test/netty/udp/main.cc +++ b/repos/libports/src/test/netty/udp/main.cc @@ -76,6 +76,9 @@ void Netty::Udp::server(int const sd, bool const nonblock, bool const read_write } count = sendto(sd, data, count, 0, pcaddr, scaddr); + if (count == -1) + Genode::error("sendto: errno=", errno, + " (", Genode::Cstring(strerror(errno)), ")"); Genode::log("echoed ", count, " bytes"); }