diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -226,7 +226,7 @@ int main(void) // select (not recvfrom). Furthermore, select will return if // gets interrupted by a signal, which is main loop breaking // can be easily implemented. - rv = select(1, &readfds, NULL, NULL, NULL); + rv = select(server_sockfd + 1, &readfds, NULL, NULL, NULL); if (rv == -1 && errno == EINTR) { interrupted_select: if (handle_signals()) |