summaryrefslogtreecommitdiff
path: root/src/irmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/irmd')
-rw-r--r--src/irmd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index bdc03ef8..d55fbbc3 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -1736,7 +1736,7 @@ void * mainloop(void * o)
#ifdef __FreeBSD__
FD_ZERO(&fds);
FD_SET(irmd.sockfd, &fds);
- if (select(irmd.sockfd, &fds, NULL, NULL, &timeout) <= 0)
+ if (select(irmd.sockfd + 1, &fds, NULL, NULL, &timeout) <= 0)
continue;
#endif