X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=send_common.c;h=a16869b07154022bfd9adf4a56250d34a2de16fb;hp=6a85644d734d6c2f7fd748edf688c6cc21b18651;hb=d87806284b9f6be9aab71ccbf0280d273b57eeb3;hpb=92f089b820b45a5dbdc5b4f69d596105d5acba68 diff --git a/send_common.c b/send_common.c index 6a85644d..a16869b0 100644 --- a/send_common.c +++ b/send_common.c @@ -1,14 +1,18 @@ /* - * Copyright (C) 2005-2011 Andre Noll + * Copyright (C) 2005-2013 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 #include "para.h" #include "error.h" @@ -23,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. */ @@ -113,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);