Commit 85e37d7
committed
librdmacm: ensure poll handles normal file descriptors correctly
When using rdma-core's preload library, the poll function needs to
correctly distinguish between rsocket-managed fds and normal fds.
This change ensures that pollfd structures are properly prepared and
the call is routed to either the native poll or rpoll based on the
actual fd type.
Signed-off-by: zhangwenge <zhangwengege@126.com>1 parent 0f5413e commit 85e37d7
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
966 | 966 | | |
967 | 967 | | |
968 | 968 | | |
| 969 | + | |
969 | 970 | | |
970 | 971 | | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | 972 | | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | 973 | | |
980 | 974 | | |
981 | 975 | | |
| |||
984 | 978 | | |
985 | 979 | | |
986 | 980 | | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
987 | 984 | | |
988 | 985 | | |
989 | | - | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
| |||
0 commit comments