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


Message #8 received at 38632 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ihor Radchenko <yantar92 <at> gmail.com>
Cc: 38632 <at> debbugs.gnu.org
Subject: Re: bug#38632: 27.0.50;
 Emacs process name is changed permanently upon creating a named thread
Date: Tue, 17 Dec 2019 22:05:52 +0200
> From: Ihor Radchenko <yantar92 <at> gmail.com>
> Date: Mon, 16 Dec 2019 14:42:38 +0800
> 
> When I try to create a named thread like
> 
> (make-thread (lambda () (+ 1 2)) "test-emacs-async")
> 
> the emacs process gets renamed to "test-emacs-async" even after the
> thread returns. Making another thread with different name renames emacs
> process again.

I think, instead of calling prctl in systhread.c, we should call
pthread_set_name_np, and the configure-time test for prctl should be
replaced with a test for pthread_set_name_np.

Patches welcome.




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.