diff options
author | Nikias Bassen | 2014-10-10 21:53:07 +0200 |
---|---|---|
committer | Nikias Bassen | 2014-10-10 21:53:07 +0200 |
commit | ef914f101de98af51063979448e971fdf6c96ce8 (patch) | |
tree | 95a31a4a553773ed61030c80eaf9b82b96d4c145 /configure.ac | |
parent | 471b2261e73c5a65049a5c842369ec3de613850c (diff) | |
download | libusbmuxd-ef914f101de98af51063979448e971fdf6c96ce8.tar.gz libusbmuxd-ef914f101de98af51063979448e971fdf6c96ce8.tar.bz2 |
inotify: Work around race condition by adding a retry loop
In certain circumstances usbmuxd might not have been started up when the
socket file creation event has occured. This causes connect_usbmuxd_socket()
to fail and usbmuxd_listen_inotify() is invoked again, but the socket file
creation event will not occur anymore. To fix this we retry to connect to
usbmuxd after waiting a second in case the first connection attempt failed
(with a maximum of 10 retries).
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions