nbio(posix): handle EOF in poll (#6556)

This commit is contained in:
Laytan
2026-04-12 11:48:59 +02:00
committed by GitHub
parent 07cd20dd33
commit ecbb20475e

View File

@@ -743,6 +743,11 @@ poll_exec :: proc(op: ^Operation) -> Op_Result {
return .Done
}
if .EOF in op._impl.flags {
op.poll.result = .Ready
return .Done
}
filter: kq.Filter
switch op.poll.event {
case .Receive: filter = .Read