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)
{
int to, cnt, i, dto;
struct fdlist pollfds;
-
+
while(!should_exit) {
usbmuxd_log(LL_FLOOD, "main_loop iteration");
to = usb_get_timeout();
@@ -135,16 +135,16 @@ int main_loop(int listenfd)
usbmuxd_log(LL_FLOOD, "Device timeout is %d ms", to);
if(dto < to)
to = dto;
-
+
fdlist_create(&pollfds);
fdlist_add(&pollfds, FD_LISTEN, listenfd, POLLIN);
usb_get_fds(&pollfds);
client_get_fds(&pollfds);
usbmuxd_log(LL_FLOOD, "fd count is %d", pollfds.count);
-
+
cnt = poll(pollfds.fds, pollfds.count, to);
usbmuxd_log(LL_FLOOD, "poll() returned %d", cnt);
-
+
if(cnt == -1) {
if(errno == EINTR && should_exit) {
usbmuxd_log(LL_INFO, "event processing interrupted");