mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 13:51:47 +00:00
fix: set usePollingTraps in event loop activation path to stop SignalSender
This commit is contained in:
@@ -1035,7 +1035,11 @@ extern "C" void VM__cancelStop(JSC::VM* vm)
|
||||
// Called from Zig when the event loop path activates the inspector.
|
||||
// Ensures runtimeInspectorActivated is set so that connect() and
|
||||
// interruptForMessageDelivery() use STW-based message delivery.
|
||||
// Also enables polling traps so that:
|
||||
// 1. The SignalSender stops its retry loop (it checks usePollingTraps)
|
||||
// 2. Future NeedDebuggerBreak traps are delivered reliably via polling
|
||||
extern "C" void Bun__setRuntimeInspectorActivated()
|
||||
{
|
||||
Bun::runtimeInspectorActivated.store(true);
|
||||
JSC::Options::usePollingTraps() = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user