X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdin.c;h=5b6bf520cb6b09f54e6dc30cb3f21c8d7118ba63;hp=facbf47395fae85b3396197118e6edf68a6cf90c;hb=190eec54bed8fe79e0ccd72614b253d591e76b4f;hpb=f45846b1a228c806424e6bf937ba09e648e87441 diff --git a/stdin.c b/stdin.c index facbf473..5b6bf520 100644 --- a/stdin.c +++ b/stdin.c @@ -75,16 +75,14 @@ static void stdin_post_select(struct sched *s, struct task *t) * \param sit The stdin task structure. * * This fills in the pre/post select function pointers of the task structure - * given by \a sit. It also sets up a default error handler which unregisters - * the task. Moreover, \a loaded and \a eof are set to zero and \a bufsize is - * initialized to 16 KB (but no buffer is allocated). + * given by \a sit. Moreover, the stdin file desctiptor is set to nonblocking + * mode and \a bufsize is initialized to 16 KB (but no buffer is allocated). */ void stdin_set_defaults(struct stdin_task *sit) { int ret; sit->bufsize = 16 * 1024, - sit->loaded = 0, sit->task.pre_select = stdin_pre_select; sit->task.post_select = stdin_post_select; sprintf(sit->task.status, "stdin reader");