summaryrefslogtreecommitdiff
path: root/net-p2p/bitcoind/files/0.18.0-daemon-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/bitcoind/files/0.18.0-daemon-fix.patch')
-rw-r--r--net-p2p/bitcoind/files/0.18.0-daemon-fix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/net-p2p/bitcoind/files/0.18.0-daemon-fix.patch b/net-p2p/bitcoind/files/0.18.0-daemon-fix.patch
new file mode 100644
index 000000000000..8a6737f88471
--- /dev/null
+++ b/net-p2p/bitcoind/files/0.18.0-daemon-fix.patch
@@ -0,0 +1,12 @@
+--- a/src/support/lockedpool.cpp
++++ b/src/support/lockedpool.cpp
+@@ -250,9 +250,6 @@ void *PosixLockedPageAllocator::AllocateLocked(size_t len, bool *lockingSuccess)
+ addr = mmap(nullptr, len, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
+ if (addr) {
+ *lockingSuccess = mlock(addr, len) == 0;
+-#ifdef MADV_DONTFORK
+- madvise(addr, len, MADV_DONTFORK);
+-#endif
+ #ifdef MADV_DONTDUMP
+ madvise(addr, len, MADV_DONTDUMP);
+ #endif