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;
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.