From: Andre Date: Fri, 7 Jul 2006 13:36:55 +0000 (+0200) Subject: write_ok(): Always reset the select timeout X-Git-Tag: v0.2.14~59^2~4 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=7a84cfc0690f3cf36c001ad27e667377c73fc8b4;ds=sidebyside write_ok(): Always reset the select timeout --- diff --git a/send.h b/send.h index bf1ca111..76a35123 100644 --- a/send.h +++ b/send.h @@ -101,6 +101,8 @@ static inline int write_ok(int fd) again: FD_ZERO(&wfds); FD_SET(fd, &wfds); + tv.tv_sec = 0; + tv.tv_usec = 0; ret = select(fd + 1, NULL, &wfds, NULL, &tv); if (ret < 0 && errno == EINTR) goto again;