mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibSQL: Use Core::Environment instead of Core::System::*env()
This commit is contained in:
parent
f4e6f5c1cc
commit
c6b9ce22ef
Notes:
sideshowbarker
2024-07-17 02:56:25 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/c6b9ce22ef Pull-request: https://github.com/SerenityOS/serenity/pull/23018 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/DanShaders Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/shannonbooth
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
#if !defined(AK_OS_SERENITY)
|
||||
# include <LibCore/Directory.h>
|
||||
# include <LibCore/Environment.h>
|
||||
# include <LibCore/SocketAddress.h>
|
||||
# include <LibCore/StandardPaths.h>
|
||||
# include <LibCore/System.h>
|
||||
|
@ -82,7 +83,7 @@ static ErrorOr<void> launch_server(ByteString const& socket_path, ByteString con
|
|||
server_fd = TRY(Core::System::dup(server_fd));
|
||||
|
||||
auto takeover_string = ByteString::formatted("SQLServer:{}", server_fd);
|
||||
TRY(Core::System::setenv("SOCKET_TAKEOVER"sv, takeover_string, true));
|
||||
TRY(Core::Environment::set("SOCKET_TAKEOVER"sv, takeover_string, Core::Environment::Overwrite::Yes));
|
||||
|
||||
ErrorOr<void> result;
|
||||
for (auto const& server_path : candidate_server_paths) {
|
||||
|
|
Loading…
Reference in a new issue