]> git.eshelyaron.com Git - emacs.git/commit
Use pthread_setname_np to set thread name
authorRobert Pluim <rpluim@gmail.com>
Thu, 19 Dec 2019 16:33:16 +0000 (17:33 +0100)
committerRobert Pluim <rpluim@gmail.com>
Mon, 6 Jan 2020 14:27:26 +0000 (15:27 +0100)
commit9063124b9125ed5e2ad87bbb8bd6224526723a92
treec21c1134698c8d2a131fd387dc3742645c3a1bd2
parent088bfcc2d80eed44864147f3491eff69e4eb5cd8
Use pthread_setname_np to set thread name

* configure.ac: Remove check for sys/prctl.h and prctl, check for
pthread_setname_np instead.

* systhread.c: Remove sys/prctl.h include.
(sys_thread_create) [HAVE_PTHREAD_SETNAME_NP]: Use pthread_setname_np
to set the name of the newly created thread (Bug#38632).

* thread.c (Fmake_thread): Use ENCODE_SYSTEM instead of
ENCODE_UTF_8 on the thread name.
configure.ac
src/systhread.c
src/thread.c