X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdin.c;h=8dce76b56e396e1f1bccc0bb9be6edfa1179b6f2;hp=e625f3726789972386de10c8af86d68b206e82c4;hb=8c24d4e777f21a8773adfd028af26b967d1880ec;hpb=92f089b820b45a5dbdc5b4f69d596105d5acba68 diff --git a/stdin.c b/stdin.c index e625f372..8dce76b5 100644 --- a/stdin.c +++ b/stdin.c @@ -1,14 +1,12 @@ /* - * Copyright (C) 2006-2011 Andre Noll + * Copyright (C) 2006-2012 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)