X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=udp_send.c;h=b1da3167880c63895fd7d2d0f94a01feed620a1f;hp=1155bcb4f107da7a71ce869d5f381644b231a626;hb=24758c5f;hpb=1cefe6a503c74d609db4e99e689d46575a5e40fd diff --git a/udp_send.c b/udp_send.c index 1155bcb4..b1da3167 100644 --- a/udp_send.c +++ b/udp_send.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2012 Andre Noll + * Copyright (C) 2005-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -8,7 +8,6 @@ #include -#include #include #include #include @@ -288,7 +287,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