Skip to content
Myr

match: reduce length of thread title, to allow for core IDs > 99

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Closes #507

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 9105e77 · Browse files · 2 files+9 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+9 added−1 removed

  • other:+9 added−1 removed

2 files+9 added−1 removed

modified:CHANGELOG.md+4 added
33 unmodified lines
34### Changed35### Deprecated36### Removed37### Fixed3839* Crash when `--match-workers >= 100` ([#507][507]).404142### Security43### Contributors4445
908 unmodified lines
modified:match.c+5 added-1 removed
1299 unmodified lines
1300 sigset_t mask;1301 sigfillset(&mask);1302 pthread_sigmask(SIG_SETMASK, &mask, NULL);13031304 /*1305 * Note: using 'mtch' instead of 'match', to allow for core IDs >1306 * 99.1307 */1308 char proc_title[16];1305 xsnprintf(proc_title, sizeof(proc_title), "fuzzel:match:%d", my_id);1309 xsnprintf(proc_title, sizeof(proc_title), "fuzzel:mtch:%d", my_id);13101311 if (pthread_setname_np(pthread_self(), proc_title) < 0)1312 LOG_ERRNO("render worker %d: failed to set process title", my_id);1313
349 unmodified lines