mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
- Use correct identifier for SHM destroy.
git-svn-id: file:///svn/unbound/trunk@4103 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
d7304e7c75
commit
e3058de235
2 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
- Fix small memory leak in edns_opt_copy_alloc.
|
- Fix small memory leak in edns_opt_copy_alloc.
|
||||||
- Respip dereference after NULL check.
|
- Respip dereference after NULL check.
|
||||||
- Zero initialize addrtree allocation.
|
- Zero initialize addrtree allocation.
|
||||||
|
- Use correct identifier for SHM destroy.
|
||||||
|
|
||||||
7 April 2017: George
|
7 April 2017: George
|
||||||
- Fix pythonmod for cb changes.
|
- Fix pythonmod for cb changes.
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ int shm_main_init(struct daemon* daemon)
|
||||||
|
|
||||||
/* Destroy previous SHM */
|
/* Destroy previous SHM */
|
||||||
if (daemon->shm_info->id_arr >= 0)
|
if (daemon->shm_info->id_arr >= 0)
|
||||||
shmctl(daemon->shm_info->id_ctl, IPC_RMID, NULL);
|
shmctl(daemon->shm_info->id_arr, IPC_RMID, NULL);
|
||||||
|
|
||||||
/* SHM: Create the segment */
|
/* SHM: Create the segment */
|
||||||
daemon->shm_info->id_ctl = shmget(daemon->shm_info->key, sizeof(struct shm_stat_info), IPC_CREAT | 0666);
|
daemon->shm_info->id_ctl = shmget(daemon->shm_info->key, sizeof(struct shm_stat_info), IPC_CREAT | 0666);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue