Subject: bug#38632: 27.0.50; Emacs process name is changed permanently upon creating a named thread

From: Robert Pluim <[email-masked]>
Date: Mon, 06 Jan 2020 23:21:07 +0100

>>>>> On Mon, 6 Jan 2020 20:50:44 +0100, Mattias Engdegård <[email-masked]> said:

    Mattias> reopen 38632
    Mattias> stop

    Mattias> The committed patch fails to compile on macOS (10.14). Here, and
    Mattias> probably BSD in general, pthread_setname_np takes a single argument
    Mattias> (the name) and applies to the current thread.

Bother.

Eli, what do you want to do here? I can rework the configure test to
check for the 2-arg version of pthread_setname_np, or we could revert
the change.

Robert