- if (sz == 0) {
- if (btr_no_parent(sot->btrn)) {
- t->error = -E_ORPHAN;
- btr_del_node(sot->btrn);
- s->timeout.tv_sec = 0;
- s->timeout.tv_usec = 1;
- }
- return;
+ ret = btr_node_status(sot->btrn, 0, BTR_NT_LEAF);
+ if (ret > 0)
+ para_fd_set(STDOUT_FILENO, &s->wfds, &s->max_fileno);
+ else if (ret < 0) {
+ s->timeout.tv_sec = 0;
+ s->timeout.tv_usec = 1;