GNU bug report logs - #38632
27.0.50; Emacs process name is changed permanently upon creating a named thread

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> gmail.com>

Date: Mon, 16 Dec 2019 06:45:02 UTC

Severity: normal

Merged with 39003

Found in versions 27.0.50, 27.0.60

Fixed in version 27.1

Done: Mattias Engdegård <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mattias Engdegård <mattiase <at> acm.org>
Cc: 38632 <at> debbugs.gnu.org, rpluim <at> gmail.com
Subject: bug#38632: 27.0.50; Emacs process name is changed permanently  upon creating a named thread
Date: Tue, 07 Jan 2020 17:45:36 +0200
> From: Mattias Engdegård <mattiase <at> acm.org>
> Date: Mon, 6 Jan 2020 22:58:25 +0100
> Cc: Eli Zaretskii <eliz <at> gnu.org>, Robert Pluim <rpluim <at> gmail.com>
> 
> Here is a quick-and-dirty patch that repairs the macOS/BSD builds. Not tested on anything else.

Thanks.  This is fine for the emacs-27 branch, but it needs some minor
cleanup:

> -static thread_creation_function *thread_start_address;

This line cannot be deleted, as it will cause systhread.c fail to
compile on MS-Windows.

And this comment on thread.h:

  /* Thread's name in the locale encoding.  Actually used only on
     WINDOWSNT.  */
  char *thread_name;

is no longer accurate, so it needs to be updated to reflect the
modified code.




This bug report was last modified 5 years and 138 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.