X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=udp_send.c;h=0ea95e41993c0c3442ff0fc219c2111f73e5e0f1;hp=8c9eebc94c3a5ef684ef86340b70d3140cd6fcda;hb=6c6065477926396a7e70f000a1cbe222ecd65be4;hpb=8d106ca317a2c42f35a86ba244f843688f6939e6 diff --git a/udp_send.c b/udp_send.c index 8c9eebc9..0ea95e41 100644 --- a/udp_send.c +++ b/udp_send.c @@ -65,8 +65,9 @@ static void udp_close_target(struct sender_client *sc) PARA_NOTICE_LOG("sending FEC EOF\n"); len = vss_get_fec_eof_packet(&buf); /* Ignore write() errors since we are closing the target anyway. */ - if (write(sc->fd, buf, len) == len) - ut->sent_fec_eof = true; + if (write(sc->fd, buf, len)) + do_nothing; /* avoid "ignoring return value" warning */ + ut->sent_fec_eof = true; } static void udp_delete_target(struct sender_client *sc, const char *msg)