summaryrefslogtreecommitdiffstats
path: root/src/main.c
AgeCommit message (Collapse)AuthorFilesLines
2020-07-30main: Increase listen socket backlog sizeGravatar Nikias Bassen1-1/+1
In environments with a larger number of devices, especially when these are connected at the time usbmuxd starts, there will be a lot of simultaneous connection attemps. With a backlog size of 5 these connection attempts will easily get a ECONNREFUSED thus failing to perform the required preflight operations. Increasing this to 256 will help to mitigate this.
2020-06-04Unify usage output with other tools and add project URLsGravatar Martin Szulecki1-1/+6
2020-05-07Do not perform preflight on T2 devicesGravatar Rick Mark1-4/+12
2019-11-02Define _BSD_SOURCE again for older platforms.Gravatar Nikias Bassen1-0/+1
While defining _BSD_SOURCE prints deprecation warnings, defining both _DEFAULT_SOURCE and _BSD_SOURCE will not.
2019-10-07Replace obsolete _BSD_SOURCE define with _DEFAULT_SOURCEGravatar Nikias Bassen1-1/+1
2019-02-07Allow logging to a dedicated logfileGravatar Nikias Bassen1-16/+35
2016-01-28Try to autodetect ppoll(2) instead of hardcoding the list of platforms ↵Gravatar Jan Beich1-1/+1
lacking it thus using fallback.
2016-01-28Fix debug message printing the wrong timeout valueGravatar Nikias Bassen1-1/+1
2014-11-12Use non-blocking sockets for client communicationGravatar Nikias Bassen1-0/+9
This approach is better than using blocking sockets and select() since there's no guarantee that send() doesn't block. Plus we're using poll() anyway so send() and recv() will only be called if the socket is actually ready for writing/reading.
2014-10-16Only conditionally compile bits of udev and systemd supportGravatar Martin Szulecki1-1/+21
2014-10-14Fix support for more than one device with systemd by extending usbmuxd usageGravatar Martin Szulecki1-15/+41
Upon connecting a new device, usbmuxd was not notified to scan for it if systemd was used as the activation method. This change introduces the "--disable-hotplug" and "--enable-exit" options to have a finer control over usbmuxd's signaling behavior. The convenience option "--systemd" complements the "--udev" option and setups the right settings for systemd.
2014-10-14Fix broken "--user" option which didn't accept an argumentGravatar Martin Szulecki1-1/+1
2014-10-06Update and slightly cleanup copyright headersGravatar Martin Szulecki1-20/+19
2014-05-27Fix detection of new "-V" version argumentGravatar Martin Szulecki1-1/+1
2014-03-27Add "--version" option to print version number and exit, useful for bug reportsGravatar Martin Szulecki1-0/+5
2014-03-27Update command usage output to match best practice and other toolsGravatar Martin Szulecki1-10/+11
2014-01-09removed trailing \n from usbmuxd_log() messagesGravatar Nikias Bassen1-2/+2
2013-12-23increase number of open file descriptorsGravatar Nikias Bassen1-0/+7
When a large number of devices are used, the number of open file descriptors can reach the default system limit. Upon startup we now raise it to a much higher value to give more 'space'.
2013-12-13add support for reading and writing config and pair record filesGravatar Nikias Bassen1-5/+2
2013-12-10main: make sure the non-privileged user has proper access to the config dirGravatar Nikias Bassen1-9/+21
2013-10-08main: prevent uninitialized value when using struct flockGravatar Nikias Bassen1-0/+1
2013-09-22main: enclose libimobiledevice related code in #ifdefsGravatar Nikias Bassen1-0/+6
2013-09-19preflight: Use userpref_get_system_buid() instead of hardcoded pathGravatar Martin Szulecki1-1/+4
2013-09-19make sure usbmuxd -x does not terminate when unpaired devices are still presentGravatar Nikias Bassen1-1/+1
2013-09-19added preflight worker implementation to handle initial device pairingGravatar Nikias Bassen1-3/+17
2013-09-17silence several compiler warningsGravatar Nikias Bassen1-5/+5
2013-09-17remove libusbmuxd sources and adapt source tree to use autotoolsGravatar Nikias Bassen1-0/+618
libusbmuxd has been split off and is now managed in a separate repository. By the time of this commit, the repository is: git clone http://git.sukimashita.com/libusbmuxd.git