Merge branch '3108-bind9-fails-to-start-on-machines-where-glibc-does-not-provide-l1-cache-size' into 'main'

Ignore the invalid L1 cache line size returned by sysconf()

Closes #3108

See merge request isc-projects/bind9!5748
This commit is contained in:
Michał Kępień 2022-01-24 08:24:12 +00:00
commit 28350cd94f
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
5796. [bug] Ignore the invalid (<= 0) values returned
by the sysconf() check for the L1 cache line
size. [GL #3108]
5795. [bug] rndc could crash when interrupted by a signal
before receiving a response. [GL #3080]

View file

@ -81,7 +81,7 @@ isc__os_initialize(void) {
ncpus_initialize();
#if defined(HAVE_SYSCONF) && defined(_SC_LEVEL1_DCACHE_LINESIZE)
long s = sysconf(_SC_LEVEL1_DCACHE_LINESIZE);
RUNTIME_CHECK((size_t)s == (size_t)ISC_OS_CACHELINE_SIZE);
RUNTIME_CHECK((size_t)s == (size_t)ISC_OS_CACHELINE_SIZE || s <= 0);
#endif
}