mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-02 13:30:32 +00:00
Test for overflowing platform FD_SET size.
This commit is contained in:
1 parent
60176c7bf4
commit
f6d6956261
5 files changed
+41
-69
No files matched your search
+3
-5
@@ -760,15 +760,13 @@ void set_dbus_listeners(int *maxfdp,
|
||||
unsigned int flags = dbus_watch_get_flags(w->watch);
|
||||
int fd = dbus_watch_get_unix_fd(w->watch);
|
||||
|
||||
bump_maxfd(fd, maxfdp);
|
||||
|
||||
if (flags & DBUS_WATCH_READABLE)
|
||||
FD_SET(fd, rset);
|
||||
bump_maxfd(rset, fd, maxfdp);
|
||||
|
||||
if (flags & DBUS_WATCH_WRITABLE)
|
||||
FD_SET(fd, wset);
|
||||
bump_maxfd(wset, fd, maxfdp);
|
||||
|
||||
FD_SET(fd, eset);
|
||||
bump_maxfd(eset, fd, maxfdp);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user