Use simplified fd_accept().

This commit is contained in:
Jari Sundell
2025-09-18 10:40:56 +02:00
committed by GitHub
parent e7a80c7b18
commit 658e9f7578
+1 -4
View File
@@ -109,10 +109,7 @@ SCgi::deactivate() {
void
SCgi::event_read() {
while (true) {
int fd;
torrent::sa_unique_ptr sa;
std::tie(fd, sa) = torrent::fd_accept(get_fd().get_fd());
int fd = torrent::fd_accept(get_fd().get_fd());
if (fd == -1) {
if (errno == EAGAIN || errno == EWOULDBLOCK)