X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.c;h=066f1af77e4ea0784221ee411a2548df0e9ce630;hp=1caa0e77023ff97d728fbe1445da8e3eb4bd5fdb;hb=f78b535b0d7863152b7ca463b2b499485f4ea1a7;hpb=47abdd7c11a8e58df82a13470553cf5683e61a00 diff --git a/stdout.c b/stdout.c index 1caa0e77..066f1af7 100644 --- a/stdout.c +++ b/stdout.c @@ -1,14 +1,12 @@ /* - * Copyright (C) 2006-2009 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,14 +68,14 @@ 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); } out: if (ret < 0) - btr_remove_node(btrn); + btr_remove_node(&sot->btrn); t->error = ret; } /**