X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=sched.c;h=66a17418027a5e9fa2d92bee412cf682561115b9;hp=385dde61f0fc210dd52bdb1192b392e39061977b;hb=89f2de1016601e523fd456e0e2fa650fa695ecaa;hpb=5ff2b0b3a6f9242033c436fb8272245f5594dd8c diff --git a/sched.c b/sched.c index 385dde61..66a17418 100644 --- a/sched.c +++ b/sched.c @@ -159,6 +159,9 @@ again: FD_ZERO(&s->wfds); } gettimeofday(now, NULL); + } else { + FD_ZERO(&s->rfds); + FD_ZERO(&s->wfds); } sched_post_select(s); if (list_empty(&pre_select_list) && list_empty(&post_select_list)) @@ -332,8 +335,8 @@ int sched_request_barrier(struct timeval *barrier, struct sched *s) * \param barrier Absolute time before select() should return. * \param s Pointer to the scheduler struct. * - * If \a barrier is in the past, this function requests a minimal timeout and - * returns zero. Otherwise it returns one. + * \return If \a barrier is in the past, this function requests a minimal + * timeout and returns zero. Otherwise it returns one. * * \sa sched_min_delay(), sched_request_barrier(). */