X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=stdout.c;h=bf4a923de06c466c0234bae9da301f1b294f11cb;hb=aa234b7afe223879a7bd7274ce05a3a315a2ec49;hp=d167cd1460225ad964c343b6129aedcac7c73c65;hpb=d0f36435b0f81368a778fda33f3a7df86830f5ac;p=paraslash.git diff --git a/stdout.c b/stdout.c index d167cd14..bf4a923d 100644 --- a/stdout.c +++ b/stdout.c @@ -107,7 +107,7 @@ static void stdout_post_select_btr(struct sched *s, struct task *t) t->error = 0; if (!sot->check_fd) { if (sz == 0 && btr_no_parent(sot->btrn)) { - t->error = -E_ORPHAN; + t->error = -E_STDOUT_EOF; goto err; } return; @@ -125,7 +125,7 @@ static void stdout_post_select_btr(struct sched *s, struct task *t) btr_consume(sot->btrn, ret); return; err: - btr_del_node(sot->btrn); + btr_remove_node(sot->btrn); } /** * Initialize a stdout task structure with default values.