X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.c;h=9c7e64e7284a3a3d247e76a7f9724f880e397a31;hp=0f0c0e539a06f584f4a26ed88c4beb8d1d7551ba;hb=277ed4a605f68118aff9e671f16c0ac6edb1d55a;hpb=1cefe6a503c74d609db4e99e689d46575a5e40fd diff --git a/stdout.c b/stdout.c index 0f0c0e53..9c7e64e7 100644 --- a/stdout.c +++ b/stdout.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2012 Andre Noll + * Copyright (C) 2006-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -68,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; } /**