mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:47:34 +00:00
WebContent: Don't pthread_setname_np() non-SerenityOS platforms
This commit is contained in:
parent
2baad565ca
commit
7354ac724e
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,7 @@ void ConnectionFromClient::load_url(const URL& url)
|
||||||
{
|
{
|
||||||
dbgln_if(SPAM_DEBUG, "handle: WebContentServer::LoadURL: url={}", url);
|
dbgln_if(SPAM_DEBUG, "handle: WebContentServer::LoadURL: url={}", url);
|
||||||
|
|
||||||
|
#if defined(AK_OS_SERENITY)
|
||||||
String process_name;
|
String process_name;
|
||||||
if (url.host().is_empty())
|
if (url.host().is_empty())
|
||||||
process_name = "WebContent";
|
process_name = "WebContent";
|
||||||
|
@ -88,6 +89,7 @@ void ConnectionFromClient::load_url(const URL& url)
|
||||||
process_name = String::formatted("WebContent: {}", url.host());
|
process_name = String::formatted("WebContent: {}", url.host());
|
||||||
|
|
||||||
pthread_setname_np(pthread_self(), process_name.characters());
|
pthread_setname_np(pthread_self(), process_name.characters());
|
||||||
|
#endif
|
||||||
|
|
||||||
page().load(url);
|
page().load(url);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue