X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdin.c;h=14201a9a6ccc757a26fd437ea2fa7ca24c95c8de;hp=0b84cdc72011e369bf290f671ae96d6e8cab8569;hb=91edaa02c232edf82b93a928058c044df80badc1;hpb=02000a1a24aa9d4f3e437821dc1f2f6b792bc79a diff --git a/stdin.c b/stdin.c index 0b84cdc7..14201a9a 100644 --- a/stdin.c +++ b/stdin.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2008 Andre Noll + * Copyright (C) 2006-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -71,7 +71,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 @@ -91,7 +91,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");