X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=send_common.c;h=0baac3a6f5c9713e810f97b53d13275f4178c610;hp=e786f996ad3b85218d9953a01fee6a86f34b6de4;hb=815bff104d37c61f65bc776eaeeb77f8a1406a1a;hpb=d7b4aa3835197ee906f13f515040e1cda6385544 diff --git a/send_common.c b/send_common.c index e786f996..0baac3a6 100644 --- a/send_common.c +++ b/send_common.c @@ -1,13 +1,18 @@ /* - * Copyright (C) 2005-2011 Andre Noll + * Copyright (C) 2005-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file send_common.c Functions used by more than one paraslash sender. */ +#include +#include #include #include +#include +#include +#include #include "para.h" #include "error.h" @@ -22,6 +27,7 @@ #include "send.h" #include "close_on_fork.h" #include "chunk_queue.h" +#include "sched.h" #include "vss.h" /** Clients will be kicked if there are more than that many bytes pending. */ @@ -112,7 +118,7 @@ int send_queued_chunks(int fd, struct chunk_queue *cq) int ret; cq_get(qc, &buf, &len); - ret = write_nonblock(fd, buf, len); + ret = xwrite(fd, buf, len); if (ret < 0) return ret; cq_update(cq, ret);