Re: poll() is buggy for duplicate file descriptors inquired for different events

2022-06-26 Thread Takashi Yano
On Sun, 26 Jun 2022 17:04:58 + "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\] wrote: > It looks like if a file descriptor is inquired a few times in a poll() call > with different events (and for one of those events the file descriptor is > "ready"), > only that occurrence gets reported correctly,

poll() is buggy for duplicate file descriptors inquired for different events

2022-06-26 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
Hi, It looks like if a file descriptor is inquired a few times in a poll() call with different events (and for one of those events the file descriptor is "ready"), only that occurrence gets reported correctly, and all other occurrences get the returned event just "copied over" (and thus, it may