X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=grab_client.c;h=b61981f2f1cd05e9f4e78e0564bae3240d878180;hp=9b4753168c8198681d58d2bc5547c6dcdde16e88;hb=d56a8447f418cf9046077e743772a416b6f7b826;hpb=ffb2eaa90429f6d5c3d369509efcdf91c5463dad diff --git a/grab_client.c b/grab_client.c index 9b475316..b61981f2 100644 --- a/grab_client.c +++ b/grab_client.c @@ -78,7 +78,7 @@ static int gc_write(struct grab_client *gc, char *buf, size_t len) if (gc->mode == GM_SLOPPY) return len; } - ret = write_nonblock(gc->fd, buf, len, 0); + ret = write_nonblock(gc->fd, buf, len); if (ret < 0) goto err; if (ret > 0) @@ -101,11 +101,8 @@ static void gc_pre_select(struct sched *s, struct task *t) if (ret == 0) return; - if (ret < 0) { - s->timeout.tv_sec = 0; - s->timeout.tv_usec = 0; - return; - } + if (ret < 0) + sched_min_delay(s); para_fd_set(gc->fd, &s->wfds, &s->max_fileno); }