]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - stdout.c
[btr] Split btr_del_node() into two functions.
[paraslash.git] / stdout.c
index d167cd1460225ad964c343b6129aedcac7c73c65..bf4a923de06c466c0234bae9da301f1b294f11cb 100644 (file)
--- 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.