X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=send_common.c;h=250a2a0bc5a80f8973b33d43bcb2e12e3ee723e9;hp=33c56e7ab135b50a4c77242cb3534ec67d5d9608;hb=63abcd1b2f6de6ce53d82962f5a2100c5a57e5d3;hpb=dae03f0046d6695172aa32722600e1b9deea1e9c diff --git a/send_common.c b/send_common.c index 33c56e7a..250a2a0b 100644 --- a/send_common.c +++ b/send_common.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2010 Andre Noll + * Copyright (C) 2005-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -7,7 +7,6 @@ /** \file send_common.c Functions used by more than one paraslash sender. */ #include -#include #include #include "para.h" @@ -23,6 +22,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 +113,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);