return -1;
if (ret == -1 && got_select) {
+ /* hmmm, we got a write select on the fd and then failed to write.
+ Why doesn't that mean that the fd is dead? It doesn't on some
+ systems it seems (eg. IRIX) */
+#if 0
fprintf(FERROR,"write exception\n");
exit_cleanup(1);
+#endif
}
+ got_select = 0;
+
+
if (ret == -1) {
read_check(buffer_f_in);
fd_count = buffer_f_in+1;
}
- got_select = 0;
-
tv.tv_sec = BLOCKING_TIMEOUT;
tv.tv_usec = 0;
count = select(fd_count,buffer_f_in == -1? NULL: &r_fds,