Skip to content

Commit

Permalink
Make nd-proxy handle the interface being shutdown gracefully
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Parlane <[email protected]>
  • Loading branch information
carlgsmith authored and sparlane committed Oct 18, 2016
1 parent df16c05 commit a35def5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nd-proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit a35def5

Please sign in to comment.