Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 736ff5d

Browse filesBrowse files
RafaelGSStargos
authored andcommitted
src: use a default thread name for inspector
This commit sets a default thread name whenever the inspector thread is created (InspectorIo) PR-URL: #56416 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
1 parent 8dc6376 commit 736ff5d
Copy full SHA for 736ff5d

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Collapse file

‎src/inspector_io.cc‎

Copy file name to clipboardExpand all lines: src/inspector_io.cc
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,11 @@ void InspectorIo::ThreadMain(void* io) {
283283
}
284284

285285
void InspectorIo::ThreadMain() {
286+
int thread_name_error = uv_thread_setname("InspectorIo");
287+
if (!thread_name_error) [[unlikely]] {
288+
per_process::Debug(node::DebugCategory::INSPECTOR_SERVER,
289+
"Failed to set thread name for Inspector\n");
290+
}
286291
uv_loop_t loop;
287292
loop.data = nullptr;
288293
int err = uv_loop_init(&loop);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.