X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdin.c;h=836369992f01b7f7a62c1b33c5674a13ba6ee89c;hp=d080e2165b169ec3fd03bf0c669ac6ec05188985;hb=c4d243653174f3f4ffc331a4bfc54de94d612f34;hpb=8248f915d9ffef663f2a1d9c70393da6a4a5c7d2 diff --git a/stdin.c b/stdin.c index d080e216..83636999 100644 --- a/stdin.c +++ b/stdin.c @@ -46,7 +46,7 @@ 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) { @@ -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)