summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSQL/SQLClient.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-02-24 22:38:01 +0100
committerLinus Groh <mail@linusgroh.de>2023-03-13 15:16:20 +0000
commitd5871f5717579fab3c093537c44e3cd467560cdd (patch)
tree9e7e118ae5b7642f0168c5302ee74e9e483ae91c /Userland/Libraries/LibSQL/SQLClient.cpp
parent1d5b45f7d938b15db9da9b12dc4d8b373abd6c7c (diff)
downloadserenity-d5871f5717579fab3c093537c44e3cd467560cdd.zip
AK: Rename Stream::{read,write} to Stream::{read_some,write_some}
Similar to POSIX read, the basic read and write functions of AK::Stream do not have a lower limit of how much data they read or write (apart from "none at all"). Rename the functions to "read some [data]" and "write some [data]" (with "data" being omitted, since everything here is reading and writing data) to make them sufficiently distinct from the functions that ensure to use the entire buffer (which should be the go-to function for most usages). No functional changes, just a lot of new FIXMEs.
Diffstat (limited to 'Userland/Libraries/LibSQL/SQLClient.cpp')
-rw-r--r--Userland/Libraries/LibSQL/SQLClient.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibSQL/SQLClient.cpp b/Userland/Libraries/LibSQL/SQLClient.cpp
index 33f21ac3b4..44e11cdd90 100644
--- a/Userland/Libraries/LibSQL/SQLClient.cpp
+++ b/Userland/Libraries/LibSQL/SQLClient.cpp
@@ -67,7 +67,8 @@ static ErrorOr<void> launch_server(DeprecatedString const& socket_path, Deprecat
if (server_pid != 0) {
auto server_pid_file = TRY(Core::File::open(pid_path, Core::File::OpenMode::Write));
- TRY(server_pid_file->write(DeprecatedString::number(server_pid).bytes()));
+ // FIXME: This should write the entire span.
+ TRY(server_pid_file->write_some(DeprecatedString::number(server_pid).bytes()));
TRY(Core::System::kill(getpid(), SIGTERM));
}