Searched refs:free_dscock_idx (Results 1 – 1 of 1) sorted by relevance
950 int free_dscock_idx = get_free_dsock(); in ctrl_connect_handler() local952 if (free_dscock_idx < 0) { in ctrl_connect_handler()963 free_dscock_idx = 0; in ctrl_connect_handler()966 data_sock[free_dscock_idx].sock = accept(ctrl_sock.sock, NULL, NULL); in ctrl_connect_handler()967 if (data_sock[free_dscock_idx].sock < 0) { in ctrl_connect_handler()974 data_sock[free_dscock_idx].handler_info.data = free_dscock_idx; in ctrl_connect_handler()975 data_sock[free_dscock_idx].handler_info.handler = ctrl_data_handler; in ctrl_connect_handler()977 epev.data.ptr = (void *)&(data_sock[free_dscock_idx].handler_info); in ctrl_connect_handler()978 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, data_sock[free_dscock_idx].sock, &epev) == -1) { in ctrl_connect_handler()980 ctrl_data_close(free_dscock_idx); in ctrl_connect_handler()