- if(poll(poll_fds, 1, 100) > 0) {
- if (poll_fds[0].revents & POLLIN) {
- if (0 != tids_accept(tids, tids_socket)) {
- tr_err("Error handling tids request.");
+ if(poll(poll_fds, n_sockets, 100) > 0) {
+ for (ii=0; ii<n_sockets; ii++) {
+ if (poll_fds[ii].revents & POLLIN) {
+ if (0 != tids_accept(tids, tids_socket[ii])) {
+ tr_err("Error handling tids request.");
+ }