Browse Source

Ref #82 fixed the bug in my_mbind function.

tags/v0.1.0^2
Xianyi Zhang 14 years ago
parent
commit
91ce66a0a8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      common_linux.h

+ 2
- 2
common_linux.h View File

@@ -76,8 +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, &null_nodemask, maxnode, flags);
// unsigned long null_nodemask=0;
return syscall(SYS_mbind, addr, len, mode, nodemask, maxnode, flags);
#endif
}



Loading…
Cancel
Save