You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

segfaults.patch 836 B

123456789101112131415161718192021222324252627
  1. From ac40907baa90a0acc78139762ffa3c6f09274236 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Alexander=20Ebersp=C3=A4cher?= <alex.eberspaecher@gmail.com>
  3. Date: Wed, 2 May 2012 11:22:52 +0200
  4. Subject: [PATCH] Fix segfaults with kernel 2.6.32. This comes at the price of many compiler warnings.
  5. ---
  6. common_linux.h | 4 ++--
  7. 1 files changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/common_linux.h b/common_linux.h
  9. index b0381d9..40a94cb 100644
  10. --- a/common_linux.h
  11. +++ b/common_linux.h
  12. @@ -76,9 +76,8 @@ static inline int my_mbind(void *addr, unsigned long len, int mode,
  13. #endif
  14. #else
  15. //Fixed randomly SEGFAULT when nodemask==NULL with above Linux 2.6.34
  16. -// unsigned long null_nodemask=0;
  17. - return syscall(SYS_mbind, addr, len, mode, nodemask, maxnode, flags);
  18. + unsigned long null_nodemask=0;
  19. + return 0;
  20. #endif
  21. }
  22. --
  23. 1.7.1