8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 20:03:03 +01:00

Fixed CORE-5891: Invalid events are released in mapping shared memory when dead process is detected

This commit is contained in:
Alex Peshkoff 2018-08-13 19:02:23 +03:00
parent f6b33b9310
commit 75b4443fae

View File

@ -746,8 +746,8 @@ public:
if (!ISC_check_process_existence(p->id)) if (!ISC_check_process_existence(p->id))
{ {
p->flags &= ~MappingHeader::FLAG_ACTIVE; p->flags &= ~MappingHeader::FLAG_ACTIVE;
sharedMemory->eventFini(&sMem->process[process].notifyEvent); sharedMemory->eventFini(&p->notifyEvent);
sharedMemory->eventFini(&sMem->process[process].callbackEvent); sharedMemory->eventFini(&p->callbackEvent);
break; break;
} }
} }