From a35def5b52430e2ca13dea7c40550354f8d93fc5 Mon Sep 17 00:00:00 2001 From: Carl Smith Date: Wed, 19 Oct 2016 11:34:03 +1300 Subject: [PATCH] Make nd-proxy handle the interface being shutdown gracefully Signed-off-by: Scott Parlane --- nd-proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nd-proxy.c b/nd-proxy.c index ed042bb..1c620c0 100644 --- a/nd-proxy.c +++ b/nd-proxy.c @@ -237,8 +237,8 @@ handle_fd(gint fd, GIOCondition condition, gpointer data) mhdr.msg_iov = &iov; mhdr.msg_iovlen = 1; if ((len = recvmsg(fd, &mhdr, 0)) < 0) { - ERROR("Rx(%s):Interface has gone away\n", iface->name); - exit(-1); + DEBUG("Rx(%s):Interface has gone away\n", iface->name); + return true; } /* Check we have at least the icmp header */