diff options
| author | Glenn Morris | 2020-02-06 07:50:29 -0800 |
|---|---|---|
| committer | Glenn Morris | 2020-02-06 07:50:29 -0800 |
| commit | 68d43392a65186a944c839dc576b2b01deafbb0d (patch) | |
| tree | 2392fb385569e10ad9d4d0ab2a48a1771131bf4e /src | |
| parent | cf14fa0427d6f490972521f7a55134e7139117c6 (diff) | |
| parent | 09eed01afb4968a93247fb8eb7b5301a5bfb6342 (diff) | |
| download | emacs-68d43392a65186a944c839dc576b2b01deafbb0d.tar.gz emacs-68d43392a65186a944c839dc576b2b01deafbb0d.zip | |
Merge from origin/emacs-27
09eed01afb Wrap some set-auto-mode calls with delay-mode-hooks (bug#3...
4a0a114505 Support ido-vertical-mode better
ef5fba9f40 Fix faces tab-bar and tab-line.
831508422e Cater for 3-argument version of pthread_setname_np
f27187f963 Clarify lexvar restrictions for add-to-ordered-list, add-t...
32763dac46 Replace add-to-list to lexical variable with push (bug#39373)
d07f177382 Clarify add-to-list documentation (bug#39373)
d3d2ea927c MH-E: alter content in mh-display-msg, not mh-show-mode
db7fa2546f Update documentation for mh-show-mode-hook
d10be6bf28 Example goto-addr hook: MH-E already uses goto-address
# Conflicts:
# etc/NEWS
Diffstat (limited to 'src')
| -rw-r--r-- | src/systhread.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/systhread.c b/src/systhread.c index c649ae853a3..0d600d6895e 100644 --- a/src/systhread.c +++ b/src/systhread.c | |||
| @@ -214,11 +214,13 @@ sys_thread_set_name (const char *name) | |||
| 214 | char p_name[TASK_COMM_LEN]; | 214 | char p_name[TASK_COMM_LEN]; |
| 215 | strncpy (p_name, name, TASK_COMM_LEN - 1); | 215 | strncpy (p_name, name, TASK_COMM_LEN - 1); |
| 216 | p_name[TASK_COMM_LEN - 1] = '\0'; | 216 | p_name[TASK_COMM_LEN - 1] = '\0'; |
| 217 | #ifdef HAVE_PTHREAD_SETNAME_NP_1ARG | 217 | # ifdef HAVE_PTHREAD_SETNAME_NP_1ARG |
| 218 | pthread_setname_np (p_name); | 218 | pthread_setname_np (p_name); |
| 219 | #else | 219 | # elif defined HAVE_PTHREAD_SETNAME_NP_3ARG |
| 220 | pthread_setname_np (pthread_self (), "%s", p_name); | ||
| 221 | # else | ||
| 220 | pthread_setname_np (pthread_self (), p_name); | 222 | pthread_setname_np (pthread_self (), p_name); |
| 221 | #endif | 223 | # endif |
| 222 | #endif | 224 | #endif |
| 223 | } | 225 | } |
| 224 | 226 | ||