OSHMEM: fix cleanup
add proper cleanup for sysv shmem segments fixed by Igor, reviewed by Miked cmr=v1.7.5:reviewer=ompi-rm1.7 This commit was SVN r30987.
Этот коммит содержится в:
родитель
8e080fb95e
Коммит
ec3957ddde
@ -114,6 +114,7 @@ sysv_runtime_query(mca_base_module_t **module,
|
||||
mca_sshmem_sysv_component.use_hp = 0;
|
||||
}
|
||||
else if ((void *)-1 == (addr = shmat(shmid, NULL, 0))) {
|
||||
shmctl(shmid, IPC_RMID, NULL );
|
||||
mca_sshmem_sysv_component.use_hp = 0;
|
||||
}
|
||||
#endif
|
||||
@ -124,6 +125,7 @@ sysv_runtime_query(mca_base_module_t **module,
|
||||
goto out;
|
||||
}
|
||||
else if ((void *)-1 == (addr = shmat(shmid, NULL, 0))) {
|
||||
shmctl(shmid, IPC_RMID, NULL );
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user