From fcfe96e834a10350cebad094922ad1f2f8a05ccb Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sat, 14 May 2016 21:39:18 +0200 Subject: ipcpd: shim-udp: log error when failed sending SDU --- src/ipcpd/shim-udp/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c index 3296540e..4da27655 100644 --- a/src/ipcpd/shim-udp/main.c +++ b/src/ipcpd/shim-udp/main.c @@ -528,7 +528,8 @@ static void * ipcp_udp_sdu_loop(void * o) rw_lock_unlock(&_ap_instance->data_lock); - send(fd, buf, len, 0); + if (send(fd, buf, len, 0) < 0) + LOG_ERR("Failed to send SDU."); rw_lock_rdlock(&_ap_instance->data_lock); -- cgit v1.2.3