Skip to content

Commit

Permalink
name the async dns thread
Browse files Browse the repository at this point in the history
so there isn't a mystery thread with the same name as the
parent process.

i.e. a diff on:
pstree -plt `pgrep coolwsd`
of;

 coolwsd(1753433)─┬─forkit(1753438)───kit_spare_001(1753456)
                  ├─{Klomgor#1}(1753434)
                  ├─{accept_poll}(1753458)
                  ├─{admin}(1753460)
-                 ├─{coolwsd}(1753436)
+                 ├─{asyncdns}(1753436)
                  ├─{prisoner_poll}(1753437)
                  ├─{remotefontconfi}(1753457)
                  └─{websrv_poll}(1753459)

Signed-off-by: Caolán McNamara <[email protected]>
Change-Id: Ic63c2be172212b3fba6f80b7da4118c89dbba6a1
  • Loading branch information
caolanm authored and vmiklos committed Nov 14, 2024
1 parent 44f5c0d commit 2b1f2da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/NetUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ AsyncDNS::~AsyncDNS()

void AsyncDNS::resolveDNS()
{
Util::setThreadName("asyncdns");
std::unique_lock<std::mutex> guard(_lock);
while (true)
{
Expand Down

0 comments on commit 2b1f2da

Please sign in to comment.