>> Also, RB_POLLIN should be avoided.
>
> Huh? What would I use for events instead?
>
> Thanks for taking your time to review this!

I meant RB_POLLIN is not backend independ name.

thanks.