Use include <cstring> and std::memcpy etc

This commit is contained in:
2025-08-23 20:24:50 -04:00
parent 18a1b30d9f
commit a2e1fd5ba1
8 changed files with 56 additions and 22 deletions

View File

@@ -131,7 +131,7 @@ void Server::shutdown() {
// Write single byte to avoid partial write complexity
while (write(shutdown_pipe_[1], &val, 1) == -1) {
if (errno != EINTR) {
abort(); // graceful shutdown didn't work. Let's go ungraceful.
std::abort(); // graceful shutdown didn't work. Let's go ungraceful.
}
}
}
@@ -328,7 +328,7 @@ void Server::start_io_threads(std::vector<std::thread> &threads) {
continue;
}
perror("epoll_wait");
abort();
std::abort();
}
ready_listen_fds.clear(); // Clear from previous iteration
@@ -384,7 +384,7 @@ void Server::start_io_threads(std::vector<std::thread> &threads) {
if (errno == EINTR)
continue;
perror("accept4");
abort();
std::abort();
}
// Check connection limit