std: IoUring test handles EINTR

This commit is contained in:
Andrew Kelley
2026-01-30 22:00:02 -08:00
parent 43866f7439
commit 14e1e5f6d8
+3 -2
View File
@@ -2736,8 +2736,9 @@ fn send(sockfd: posix.socket_t, buf: []const u8, flags: u32) !usize {
}
fn connect(sock: posix.socket_t, sock_addr: *const posix.sockaddr, len: posix.socklen_t) !void {
switch (posix.errno(posix.system.connect(sock, sock_addr, len))) {
while (true) switch (posix.errno(posix.system.connect(sock, sock_addr, len))) {
.SUCCESS => return,
.INTR => continue,
else => return error.ConnectFailed,
}
};
}