summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-04-16 10:51:34 +0000
committerSander Vrijders <sander.vrijders@ugent.be>2017-04-16 10:51:34 +0000
commit9c6750d70b591af5429fcafbad19aede69e21675 (patch)
tree265e306216513961b965060b699fb10bf6f4d1ca /src/irmd/main.c
parente543c43c9f911bbe40371e3c6ca5c916cb3365a9 (diff)
parent00a3eb081e83bda40eacd294345cfcd3b348c597 (diff)
downloadouroboros-9c6750d70b591af5429fcafbad19aede69e21675.tar.gz
ouroboros-9c6750d70b591af5429fcafbad19aede69e21675.zip
Merged in dstaesse/ouroboros/be-bsd (pull request #485)
irmd, ipcpd: Include socket in select() for FreeBSD
Diffstat (limited to 'src/irmd/main.c')
-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