Skip to content

Commit 0d7dba5

Browse files
committed
Add debug in node loader for 14.x for signals.
1 parent bb4f0b5 commit 0d7dba5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/loaders/node_loader/source/node_loader_impl.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4498,6 +4498,13 @@ void node_loader_impl_walk_async_handles_count(uv_handle_t *handle, void *arg)
44984498
{
44994499
(*async_count)++;
45004500
}
4501+
4502+
if (handle->type == UV_SIGNAL)
4503+
{
4504+
// TODO: Remove this. Debug signals in ^14.x for destroying properly.
4505+
uv_signal_t *signal = (uv_signal_t *)handle;
4506+
printf("DEBUG SIGNAL: %d\n", signal->signum);
4507+
}
45014508
}
45024509

45034510
int64_t node_loader_impl_async_handles_count(loader_impl_node node_impl)

0 commit comments

Comments
 (0)