Browse Source

Refs #85 #104. Disable my_bind to fix this segfault issue.

tags/v0.2.0^2
Xianyi Zhang 13 years ago
parent
commit
e7846547be
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      segfaults.patch

+ 2
- 2
segfaults.patch View File

@@ -11,14 +11,14 @@ diff --git a/common_linux.h b/common_linux.h
index b0381d9..40a94cb 100644
--- a/common_linux.h
+++ b/common_linux.h
@@ -76,8 +76,8 @@ static inline int my_mbind(void *addr, unsigned long len, int mode,
@@ -76,9 +76,8 @@ static inline int my_mbind(void *addr, unsigned long len, int mode,
#endif
#else
//Fixed randomly SEGFAULT when nodemask==NULL with above Linux 2.6.34
-// unsigned long null_nodemask=0;
- return syscall(SYS_mbind, addr, len, mode, nodemask, maxnode, flags);
+ unsigned long null_nodemask=0;
+ return syscall(SYS_mbind, addr, len, mode, &nodemask, maxnode, flags);
+ return 0;
#endif
}


Loading…
Cancel
Save