X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=stdin.c;h=c8ee808fcb539611fb1e40cddc9c0c189fa95d50;hb=c5cbf3fc1fb7a76ab48424581b5c212e1b66f9e4;hp=836369992f01b7f7a62c1b33c5674a13ba6ee89c;hpb=c4d243653174f3f4ffc331a4bfc54de94d612f34;p=paraslash.git diff --git a/stdin.c b/stdin.c index 83636999..c8ee808f 100644 --- 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);