summaryrefslogtreecommitdiffstats
path: root/usbmuxd/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usbmuxd/main.c')
-rw-r--r--usbmuxd/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usbmuxd/main.c b/usbmuxd/main.c
index 182178f..be7451f 100644
--- a/usbmuxd/main.c
+++ b/usbmuxd/main.c
@@ -126,7 +126,7 @@ int main_loop(int listenfd)
126{ 126{
127 int to, cnt, i, dto; 127 int to, cnt, i, dto;
128 struct fdlist pollfds; 128 struct fdlist pollfds;
129 129
130 while(!should_exit) { 130 while(!should_exit) {
131 usbmuxd_log(LL_FLOOD, "main_loop iteration"); 131 usbmuxd_log(LL_FLOOD, "main_loop iteration");
132 to = usb_get_timeout(); 132 to = usb_get_timeout();
@@ -135,16 +135,16 @@ int main_loop(int listenfd)
135 usbmuxd_log(LL_FLOOD, "Device timeout is %d ms", to); 135 usbmuxd_log(LL_FLOOD, "Device timeout is %d ms", to);
136 if(dto < to) 136 if(dto < to)
137 to = dto; 137 to = dto;
138 138
139 fdlist_create(&pollfds); 139 fdlist_create(&pollfds);
140 fdlist_add(&pollfds, FD_LISTEN, listenfd, POLLIN); 140 fdlist_add(&pollfds, FD_LISTEN, listenfd, POLLIN);
141 usb_get_fds(&pollfds); 141 usb_get_fds(&pollfds);
142 client_get_fds(&pollfds); 142 client_get_fds(&pollfds);
143 usbmuxd_log(LL_FLOOD, "fd count is %d", pollfds.count); 143 usbmuxd_log(LL_FLOOD, "fd count is %d", pollfds.count);
144 144
145 cnt = poll(pollfds.fds, pollfds.count, to); 145 cnt = poll(pollfds.fds, pollfds.count, to);
146 usbmuxd_log(LL_FLOOD, "poll() returned %d", cnt); 146 usbmuxd_log(LL_FLOOD, "poll() returned %d", cnt);
147 147
148 if(cnt == -1) { 148 if(cnt == -1) {
149 if(errno == EINTR && should_exit) { 149 if(errno == EINTR && should_exit) {
150 usbmuxd_log(LL_INFO, "event processing interrupted"); 150 usbmuxd_log(LL_INFO, "event processing interrupted");