Subject: Re: bug#78946: 30.1; accept-process-output not allowed in threads on macOS

From: Robert Pluim <[email-masked]>
Date: Fri, 04 Jul 2025 13:46:19 +0200

>>>>> On Thu, 03 Jul 2025 16:00:23 -0700, John Wiegley <[email-masked]> said:

>>>>> Robert Pluim <[email-masked]> writes:
    >> John, does it help if you stick something like

    >> if ([[NSThread currentThread] isMainThread])
    >> {
    >> }

    >> around the

    >> [NSApp run];

    >> in `ns_select_1'?

    John> Hi Robert,

    John> With this change, I’m able to run the tests successfully 10,000 times in my
    John> interactive Emacs on macOS.

Thatʼs encouraging. Alan, does this change make sense? (Iʼve swapped
out what little I know about the macOS event loop 😀)

Robert
--