X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.c;h=abe7abc98df759af034872be4d65ed9a30133207;hp=eaf0f99f070ae0de81c4f34c9f8cd0a373654c3d;hb=fd864cc2fb78f1fac3af849743909aa23b2cb633;hpb=9b565c60fd159e12d255bb18db9dbff066deebea diff --git a/stdout.c b/stdout.c index eaf0f99f..abe7abc9 100644 --- a/stdout.c +++ b/stdout.c @@ -1,14 +1,12 @@ /* - * Copyright (C) 2006-2010 Andre Noll + * Copyright (C) 2006-2012 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file stdout.c Functions that deal with writing to stdout. */ -#include /* readdir() */ #include -#include #include "para.h" #include "list.h" @@ -70,7 +68,7 @@ static void stdout_post_select(struct sched *s, struct task *t) sz = btr_next_buffer(btrn, &buf); if (sz == 0) break; - ret = write_nonblock(STDOUT_FILENO, buf, sz, 0); + ret = xwrite(STDOUT_FILENO, buf, sz); if (ret <= 0) break; btr_consume(btrn, ret);