mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
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:
commit
28350cd94f
2 changed files with 5 additions and 1 deletions
4
CHANGES
4
CHANGES
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue