aboutsummaryrefslogtreecommitdiffstats
path: root/src/interface.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-03 19:42:54 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-03 19:42:54 +0000
commit405ad9e58bbb1be771d777f00b253e03061f6b2e (patch)
tree30737ecec65435621fc12eca129c2e2b6d1719c3 /src/interface.c
parent16335ba0976077e2fbc326afe66cc50efe622b6b (diff)
downloadmpd-405ad9e58bbb1be771d777f00b253e03061f6b2e.tar.gz
mpd-405ad9e58bbb1be771d777f00b253e03061f6b2e.tar.xz
mpd-405ad9e58bbb1be771d777f00b253e03061f6b2e.zip
now one can specify multiple bind_to_addresses
git-svn-id: https://svn.musicpd.org/mpd/trunk@2501 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interface.c b/src/interface.c
index 72c71f911..d2ae43a8d 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -337,8 +337,7 @@ void addInterfacesReadyToReadAndListenSocketToFdSet(fd_set * fds, int * fdmax) {
int i;
FD_ZERO(fds);
- FD_SET(listenSocket,fds);
- if(*fdmax<listenSocket) *fdmax = listenSocket;
+ addListenSocketsToFdSet(fds, fdmax);
for(i=0;i<interface_max_connections;i++) {
if(interfaces[i].open && !interfaces[i].expired && !interfaces[i].bufferList) {
@@ -396,7 +395,7 @@ int doIOForInterfaces() {
addInterfacesForBufferFlushToFdSet(&wfds,&fdmax);
while((selret = select(fdmax+1,&rfds,&wfds,NULL,&tv))) {
- if(FD_ISSET(listenSocket,&rfds)) getConnections(listenSocket);
+ getConnections(&rfds);
if(selret<0 && errno==EINTR) break;
else if(selret<0) {
closeNextErroredInterface();