]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - stdin.c
stdin: Increase buffer size.
[paraslash.git] / stdin.c
diff --git a/stdin.c b/stdin.c
index 836369992f01b7f7a62c1b33c5674a13ba6ee89c..c8ee808fcb539611fb1e40cddc9c0c189fa95d50 100644 (file)
--- a/stdin.c
+++ b/stdin.c
@@ -52,7 +52,7 @@ static void stdin_pre_select_btr(struct sched *s, struct task *t)
 {
        struct stdin_task *sit = container_of(t, struct stdin_task, task);
 
-       if (btr_no_children(sit->btrn)) {
+       if (btr_no_children(sit->btrn)) { /* TODO: defer node deletion to post select */
                t->error = -E_STDIN_NO_CHILD;
                btr_del_node(sit->btrn);
                sit->btrn = NULL;
@@ -101,7 +101,7 @@ static void stdin_post_select(struct sched *s, struct task *t)
                t->error = -E_STDIN_EOF;
 }
 
-#define STDIN_INPUT_BUFFER_SIZE 4000
+#define STDIN_INPUT_BUFFER_SIZE (1024 * 32)
 static void stdin_post_select_btr(struct sched *s, struct task *t)
 {
        struct stdin_task *sit = container_of(t, struct stdin_task, task);