Subject: bug#29170: 26.0.90; Emacs freezes when capturing an org-template

From: Eli Zaretskii <[email-masked]>
Date: Fri, 02 Oct 2020 18:08:44 +0300

> From: Lars Ingebrigtsen <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Fri, 02 Oct 2020 16:30:45 +0200
> 
> On OpenBSD, most of the time, the function
> "xselect.c/x_get_foreign_selection" won't get a SelectNotify with
> (SECONDARY, TEXT) as arguments (that I did not understand and it might
> never happen on other oses).
> 
> But then, while waiting at most 'x-selection-timeout' into
> "process.c/wait_reading_process_output" the 'now' variable won't have a
> chance of being invalidated or updated and that is what cause the
> infinite loop.
> 
> Someone more knowledgeable of "process.c/wait_reading_process_output"
> might have a better solution to this problem.

If this is an OpenBSD-only problem, maybe we should install that
change #ifdef'ed by OpenBSD?