summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index c10ec68..6303a70 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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())