1
1

Check to ensure that the mmap succeeded. Thanks to Julia Seward for

pointing out the problem and suggesting the fix.

This commit was SVN r22055.
Этот коммит содержится в:
Jeff Squyres 2009-10-06 17:44:14 +00:00
родитель 14e6952482
Коммит 932b43be04

Просмотреть файл

@ -134,6 +134,9 @@ static int ptmalloc2_open(void)
}
p = mmap(NULL, 4096, PROT_READ, MAP_ANONYMOUS, -1, 0);
if (NULL == p) {
return OPAL_ERR_OUT_OF_RESOURCE;
}
munmap(p, 4096);
if (opal_memory_ptmalloc2_munmap_invoked) {