X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=udp_send.c;h=7930f09234486d3448b196ba45ae3b178845d001;hp=bc23831147d957c548fcfece7b97e3f13f20c7a6;hb=63abcd1b2f6de6ce53d82962f5a2100c5a57e5d3;hpb=a0013831ff918ac229066c9c804f75e1b50011c5 diff --git a/udp_send.c b/udp_send.c index bc238311..7930f092 100644 --- a/udp_send.c +++ b/udp_send.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2011 Andre Noll + * Copyright (C) 2005-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -8,7 +8,7 @@ #include -#include +#include #include #include #include @@ -288,7 +288,7 @@ static void udp_send_fec(struct sender_client *sc, char *buf, size_t len) ret = udp_check_socket_state(sc); if (ret < 0) goto fail; - ret = write_nonblock(sc->fd, buf, len); + ret = xwrite(sc->fd, buf, len); if (ret == -ERRNO_TO_PARA_ERROR(ECONNREFUSED)) { /* * Happens if meanwhile an ICMP Destination / Port Unreachable