X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=send.h;h=76a35123c8b5b414b45eec935a525e8d906ae22a;hp=bf1ca111f7f88cf300f0c18f9c1c93930549ea99;hb=2ecabb05dbeb0948e514cdad1bb811d9edf97e2e;hpb=8b2c02c8d6255583982e767374d39375b3380c4d 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;