X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.c;h=abe7abc98df759af034872be4d65ed9a30133207;hp=5604fced075f5c2b24b8df622c6e0ad5c3a320dc;hb=d0d27cfa56d05eaa0e5567c75adfe606eab2957e;hpb=9417eae5ca2b9f10d25f769221e8fd91048bc68a diff --git a/stdout.c b/stdout.c index 5604fced..abe7abc9 100644 --- a/stdout.c +++ b/stdout.c @@ -1,14 +1,12 @@ /* - * Copyright (C) 2006-2011 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); + ret = xwrite(STDOUT_FILENO, buf, sz); if (ret <= 0) break; btr_consume(btrn, ret);