]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - stdout.c
Do the RC4_ALIGN dance also for sideband connections.
[paraslash.git] / stdout.c
index 0f0c0e539a06f584f4a26ed88c4beb8d1d7551ba..066f1af77e4ea0784221ee411a2548df0e9ce630 100644 (file)
--- a/stdout.c
+++ b/stdout.c
@@ -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;
 }
 /**