]> git.saurik.com Git - redis.git/blobdiff - src/debug.c
Merge pull request #787 from charsyam/remove-warning-bio
[redis.git] / src / debug.c
index 003d2bd408f41cc7ed2c2f749edaaea4fe21f444..be3db882bbd8a863b5e3be6fc0032a9401616e6e 100644 (file)
@@ -37,6 +37,7 @@
 #include <execinfo.h>
 #include <ucontext.h>
 #include <fcntl.h>
+#include "bio.h"
 #endif /* HAVE_BACKTRACE */
 
 /* ================================= Debugging ============================== */
@@ -746,6 +747,7 @@ void sigsegvHandler(int sig, siginfo_t *info, void *secret) {
 #if defined(HAVE_PROC_MAPS)
     /* Test memory */
     redisLog(REDIS_WARNING, "--- FAST MEMORY TEST");
+    bioKillThreads();
     if (memtest_test_linux_anonymous_maps()) {
         redisLog(REDIS_WARNING,
             "!!! MEMORY ERROR DETECTED! Check your memory ASAP !!!");