X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.c;h=9c7e64e7284a3a3d247e76a7f9724f880e397a31;hp=a2ee2aca6af8114eadf92539092bcca9bb7d0e09;hb=23b121a85984baa9252f4b4c0b8c4f186e394bb7;hpb=d7b4aa3835197ee906f13f515040e1cda6385544 diff --git a/stdout.c b/stdout.c index a2ee2aca..9c7e64e7 100644 --- a/stdout.c +++ b/stdout.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2011 Andre Noll + * Copyright (C) 2006-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -7,7 +7,6 @@ /** \file stdout.c Functions that deal with writing to stdout. */ #include -#include #include "para.h" #include "list.h" @@ -69,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); + 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; } /**