X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdin.c;h=d978ee9a23cc7fe6f47eab17e7f46ac78032ceaf;hp=d080e2165b169ec3fd03bf0c669ac6ec05188985;hb=74a835c7c3b6f4f71fc1f4739f26757dffdf012a;hpb=aa05cb41dd2f031935507e89b56b1e6096b846db diff --git a/stdin.c b/stdin.c index d080e216..d978ee9a 100644 --- a/stdin.c +++ b/stdin.c @@ -46,13 +46,13 @@ static void stdin_pre_select(struct sched *s, struct task *t) para_fd_set(STDIN_FILENO, &s->rfds, &s->max_fileno); } -#define STDIN_MAX_PENDING (1024 * 1024) +#define STDIN_MAX_PENDING (100 * 1024) 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; @@ -120,6 +120,7 @@ static void stdin_post_select_btr(struct sched *s, struct task *t) buf = para_malloc(STDIN_INPUT_BUFFER_SIZE); ret = read(STDIN_FILENO, buf, STDIN_INPUT_BUFFER_SIZE); + //PARA_CRIT_LOG("read ret: %d\n", ret); if (ret < 0) t->error = -ERRNO_TO_PARA_ERROR(errno); if (ret == 0)