GeezerVison is showing github.com — src: set signal inspector io thread name · nodejs/node@915d7ae
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/worker_threads.md +3-1Lines changed: 3 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1235,7 +1235,9 @@ changes: |
1235 | 1235 | * Maximum sizes: |
1236 | 1236 | * Windows: 32,767 characters |
1237 | 1237 | * macOS: 64 characters |
1238 | | - * Other systems: 16 characters |
| 1238 | + * Linux: 16 characters |
| 1239 | + * NetBSD: limited to `PTHREAD_MAX_NAMELEN_NP` |
| 1240 | + * FreeBSD and OpenBSD: limited to `MAXCOMLEN` |
1239 | 1241 | **Default:** `'WorkerThread'`. |
1240 | 1242 |
|
1241 | 1243 | ### Event: `'error'` |
|
Collapse file
Copy file name to clipboardExpand all lines: src/inspector_agent.cc +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -86,6 +86,7 @@ static void StartIoThreadWakeup(int signo, siginfo_t* info, void* ucontext) { |
86 | 86 | } |
87 | 87 |
|
88 | 88 | inline void* StartIoThreadMain(void* unused) { |
| 89 | + uv_thread_setname("SignalInspector"); |
89 | 90 | for (;;) { |
90 | 91 | uv_sem_wait(&start_io_thread_semaphore); |
91 | 92 | Mutex::ScopedLock lock(start_io_thread_async_mutex); |
|
Collapse file
Copy file name to clipboardExpand all lines: src/inspector_io.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -286,7 +286,7 @@ void InspectorIo::ThreadMain() { |
286 | 286 | int thread_name_error = uv_thread_setname("InspectorIo"); |
287 | 287 | if (!thread_name_error) [[unlikely]] { |
288 | 288 | per_process::Debug(node::DebugCategory::INSPECTOR_SERVER, |
289 | | - "Failed to set thread name for Inspector\n"); |
| 289 | + "Failed to set thread name for Inspector\n"); |
290 | 290 | } |
291 | 291 | uv_loop_t loop; |
292 | 292 | loop.data = nullptr; |
|