ofiwg / librdmacm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The rselect function and timeout.

sunhan-code opened this issue · comments

From the man page of the select() function, we can use the function as a subsecond precision timer. However, the rselect() does not support it and it seems it just returns an ENOMEM error. Is there any plan to support this?

Here is an extract from the man page.
Some code calls select() with all three sets empty, nfds zero, and a non-NULL timeout as a
fairly portable way to sleep with subsecond precision.

There are no plans to support this, but there's no objection to having it if a patch were submitted. I just don't have time to write one myself at the moment. The best option for an app today is to trap for this and call select directly.