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