X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdin.c;h=fd803ae5441acf01446dadab89c35d3bec14cecd;hp=e625f3726789972386de10c8af86d68b206e82c4;hb=f652ce6afe7f6fd0e42814505234cbf4321a736e;hpb=b62e2796b85c7d7f3138fe729f4637853e0fafe0 diff --git a/stdin.c b/stdin.c index e625f372..fd803ae5 100644 --- a/stdin.c +++ b/stdin.c @@ -1,14 +1,12 @@ /* - * Copyright (C) 2006-2011 Andre Noll + * Copyright (C) 2006-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file stdin.c Functions that deal with reading from stdin. */ -#include /* readdir() */ #include -#include #include #include "para.h" @@ -85,7 +83,7 @@ static void stdin_post_select(struct sched *s, struct task *t) if (ret >= 0) return; err: - btr_remove_node(sit->btrn); + btr_remove_node(&sit->btrn); //btr_pool_free(sit->btrp); t->error = ret; } @@ -105,7 +103,7 @@ void stdin_set_defaults(struct stdin_task *sit) sit->task.pre_select = stdin_pre_select; sit->task.post_select = stdin_post_select; - sit->btrp = btr_pool_new("stdin", 64 * 1024); + sit->btrp = btr_pool_new("stdin", 128 * 1024); sprintf(sit->task.status, "stdin reader"); ret = mark_fd_nonblocking(STDIN_FILENO); if (ret >= 0)