diff options
author | Andreas Kling <kling@serenityos.org> | 2022-10-06 17:14:12 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-06 17:15:28 +0200 |
commit | 7354ac724e8c3c450d4a926c2e4ed79866a067ac (patch) | |
tree | 385d59f0302d64870e28c23ff7258668cfebae79 /Userland/Services | |
parent | 2baad565ca74b21e3bab10479caa7d50b912bf0d (diff) | |
download | serenity-7354ac724e8c3c450d4a926c2e4ed79866a067ac.zip |
WebContent: Don't pthread_setname_np() non-SerenityOS platforms
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/WebContent/ConnectionFromClient.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp index df2696abc9..a1f1efa954 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.cpp +++ b/Userland/Services/WebContent/ConnectionFromClient.cpp @@ -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); } |