X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=stdin.c;h=6277f7e70fe3d30030752f6f4955ccdafce65a0e;hb=b55f996a9d756a84b7fb880df6a9b917215ea058;hp=8eb86dee69ba7322524e960bba6169916e9bef14;hpb=516425bb4bd508e036169a8829e1ad04e7a099cd;p=paraslash.git diff --git a/stdin.c b/stdin.c index 8eb86dee..6277f7e7 100644 --- a/stdin.c +++ b/stdin.c @@ -69,7 +69,7 @@ static void stdin_post_select(struct sched *s, struct task *t) return; ret = read(STDIN_FILENO, sit->buf + sit->loaded, sit->bufsize - sit->loaded); if (ret < 0) - t->error = ERRNO_TO_PARA_ERROR(errno); + t->error = -ERRNO_TO_PARA_ERROR(errno); else if (ret > 0) sit->loaded += ret; else @@ -89,7 +89,7 @@ void stdin_set_defaults(struct stdin_task *sit) { int ret; - sit->bufsize = 16 * 1024, + sit->bufsize = 32 * 1024, sit->task.pre_select = stdin_pre_select; sit->task.post_select = stdin_post_select; sprintf(sit->task.status, "stdin reader");