Use include <cstring> and std::memcpy etc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user