Set shm->valid to false on disconnect.
This commit is contained in:
parent
4af979c842
commit
6de8c71d2a
|
@ -1052,6 +1052,7 @@ bool Monitor::disconnect() {
|
|||
return true;
|
||||
}
|
||||
|
||||
shared_data->valid = false;
|
||||
#if ZM_MEM_MAPPED
|
||||
msync(mem_ptr, mem_size, MS_ASYNC);
|
||||
munmap(mem_ptr, mem_size);
|
||||
|
|
Loading…
Reference in New Issue