Skip to content

Commit

Permalink
Merge pull request #1484 from linxiaochou/fix-cm_svc_run
Browse files Browse the repository at this point in the history
Fix for cm_svc_run
  • Loading branch information
rleon authored Jul 25, 2024
2 parents 84b095f + 24061f0 commit c6fef6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion librdmacm/rsocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -4678,8 +4678,11 @@ static void *cm_svc_run(void *arg)
fds[i].revents = 0;

poll(fds, svc->cnt + 1, -1);
if (fds[0].revents)
if (fds[0].revents) {
cm_svc_process_sock(svc);
/* svc->contexts may have been reallocated, so need to assign again */
fds = svc->contexts;
}

for (i = 1; i <= svc->cnt; i++) {
if (!fds[i].revents)
Expand Down

0 comments on commit c6fef6f

Please sign in to comment.