vibe-d / eventcore

High performance proactor event loop abstraction library
MIT License
60 stars 42 forks source link

Do not retry if close(2) returns EINTR #195

Closed kubo39 closed 2 years ago

kubo39 commented 2 years ago

if a different thread opens a file at the wrong time and gets our file descriptor, we might end up closing the wrong file.

ref: https://www.austingroupbugs.net/view.php?id=529

kubo39 commented 2 years ago

Ah, there is one more case in pipes.d. I'll fix it too.