252 |
} |
} |
253 |
} |
} |
254 |
} else |
} else |
255 |
#else |
#endif |
256 |
if ((s = select(*sock + 1, &fds, NULL, NULL, tvp)) > 0 |
if ((s = select(*sock + 1, &fds, NULL, NULL, tvp)) > 0 |
257 |
&& FD_ISSET(*sock, &fds)) |
&& FD_ISSET(*sock, &fds)) |
258 |
e = read(*sock, buf, RESPONSE_BUF - 1); |
e = read(*sock, buf, RESPONSE_BUF - 1); |
259 |
|
|
260 |
if (e == -1) |
if (e == -1) |
261 |
fatal(ERROR_NETWORK, "imapfilter: reading data; %s", |
fatal(ERROR_NETWORK, "imapfilter: reading data; %s", |
262 |
strerror(errno)); |
strerror(errno)); |
|
#endif |
|
|
|
|
263 |
|
|
264 |
fcntl(*sock, F_SETFL, f); |
fcntl(*sock, F_SETFL, f); |
265 |
|
|
326 |
} |
} |
327 |
} |
} |
328 |
} else |
} else |
329 |
#else |
#endif |
330 |
if ((s = select(*sock + 1, NULL, &fds, NULL, tvp)) > 0 |
if ((s = select(*sock + 1, NULL, &fds, NULL, tvp)) > 0 |
331 |
&& FD_ISSET(*sock, &fds)) |
&& FD_ISSET(*sock, &fds)) |
332 |
e = write(*sock, data, strlen(data)); |
e = write(*sock, data, strlen(data)); |
333 |
|
|
334 |
if (e == -1) |
if (e == -1) |
335 |
fatal(ERROR_NETWORK, "imapfilter: writing data; %s", |
fatal(ERROR_NETWORK, "imapfilter: writing data; %s", |
336 |
strerror(errno)); |
strerror(errno)); |
|
#endif |
|
337 |
|
|
338 |
fcntl(*sock, F_SETFL, f); |
fcntl(*sock, F_SETFL, f); |
339 |
|
|