mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-26 13:48:23 +00:00
nbio(posix): handle EOF in poll (#6556)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user