Problem: Still trying to read from channel that is going to be closed.
(Ramel Eshed)
Solution: Check if ch_to_be_closed is set.
sock_T fd;
int use_socket = FALSE;
+ /* If we detected a read error don't try reading again. */
+ if (channel->ch_to_be_closed)
+ return;
+
fd = channel->ch_part[part].ch_fd;
if (fd == INVALID_FD)
{
for (channel = first_channel; channel != NULL; channel = channel->ch_next)
{
+ /* If we detected a read error don't try reading again. */
+ if (channel->ch_to_be_closed)
+ continue;
+
/* check the socket and pipes */
for (part = PART_SOCK; part <= PART_ERR; ++part)
{
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1849,
/**/
1848,
/**/