diff --git a/src/jrd/ProfilerManager.cpp b/src/jrd/ProfilerManager.cpp index f2c796cbc9..0a87df37a0 100644 --- a/src/jrd/ProfilerManager.cpp +++ b/src/jrd/ProfilerManager.cpp @@ -791,7 +791,10 @@ void ProfilerIpc::internalSendAndReceive(thread_db* tdbb, Tag tag, sharedMemory->eventPost(&header->serverEvent); - sharedMemory->eventWait(&header->clientEvent, value, 0); + { + EngineCheckout cout(tdbb, FB_FUNCTION); + sharedMemory->eventWait(&header->clientEvent, value, 0); + } if (header->tag == Tag::RESPONSE) {