mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
WebContent: Don't pthread_setname_np() non-SerenityOS platforms
This commit is contained in:
parent
2baad565ca
commit
7354ac724e
Notes:
sideshowbarker
2024-07-17 14:36:19 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/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);
|
||||
|
||||
#if defined(AK_OS_SERENITY)
|
||||
String process_name;
|
||||
if (url.host().is_empty())
|
||||
process_name = "WebContent";
|
||||
|
@ -88,6 +89,7 @@ void ConnectionFromClient::load_url(const URL& url)
|
|||
process_name = String::formatted("WebContent: {}", url.host());
|
||||
|
||||
pthread_setname_np(pthread_self(), process_name.characters());
|
||||
#endif
|
||||
|
||||
page().load(url);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue