src: fix Worker termination in `inspector.waitForDebugger`
Fixes: #52467 (closed)
When calling inspector.waitForDebugger()
on a worker thread, it waits synchronously for debugger to connect using a conditional variable, incoming_message_cond_
. In this state, the worker thread cannot be terminated by the main thread.
This patch adds a way to exit the wait state when node process exits.
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com