emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wait_reading_process_ouput hangs in certain cases (w/ patches)


From: Robert Pluim
Subject: Re: wait_reading_process_ouput hangs in certain cases (w/ patches)
Date: Tue, 13 Mar 2018 13:35:23 +0100

Matthias Dahl <address@hidden> writes:

> -           if (set)
> -             Available = tls_available;
> +              for (channel = 0; channel < FD_SETSIZE; ++channel)
> +                if (! NILP (chan_process[channel]))
> +                  {
> +                    struct Lisp_Process *p =
> +                      XPROCESS (chan_process[channel]);
> +
> +                    if (just_wait_proc && p != wait_proc)
> +                      continue;
> +
> +                    if (p && p->gnutls_p && p->gnutls_state
> +                        && ((emacs_gnutls_record_check_pending
> +                             (p->gnutls_state))
> +                            > 0))
> +                      {
> +                        nfds++;
> +                        eassert (p->infd == channel);
> +                        FD_SET (p->infd, &Available);
> +                      }
> +                  }
>           }
>  #endif
>       }

Hi Matthias, I apologize if this has already been mentioned, but did
you check that this doesn't undo the fix for Bug#21337? The issue
there as I recall was that FD's were set in Available that didn't
actually have data to read, hence the need to check the TLS FD's
separately using tls_available.

Regards

Robert



reply via email to

[Prev in Thread] Current Thread [Next in Thread]