Jason E. Hale f4bd2eeb66 comms/usbmuxd: Workaround devd(8) race condition
When connecting an Apple device via USB, the device connects, usbmuxd is
started, then for reasons yet unknown, the device instantly disconnects,
and reconnects.

From dmesg when plugging in, for example:
ugen0.5: <Apple Inc. iPhone> at usbus0
<usbmuxd starts here>
ugen0.5: <Apple Inc. iPhone> at usbus0 (disconnected)
ugen0.5: <Apple Inc. iPhone> at usbus0

Due to the disconnect, the instance of usbmuxd that is spawned when the
device is first attached is subsequently killed by the unexplained
detach because the cdce(4) devices have not yet been created, but not
before the second instance of usbmuxd is started by the reattach. The
second instance automatically exits because two instances cannot run
simultaneously. The first instance then exits leaving no running
instances.

Adding a short sleep after the first instance is called to shutdown
gives it enough time to completely exit before the second instance is
spawned. Unfortunately, only one device is supported at a time until
I can figure out why the hotplugging isn't working.

While here, cleanup whitespace.

PR:		280014
Reported by:	<fabio.comolli@gmail.com>
2024-07-12 02:24:35 -04:00
2024-07-10 09:00:57 -07:00
2024-07-12 08:01:42 +02:00
2024-07-09 03:08:39 -07:00
2024-07-11 13:25:18 +00:00
2024-07-11 20:51:22 -07:00
2024-07-11 20:51:21 -07:00
2024-07-11 15:29:12 +02:00
2024-07-11 13:48:33 +00:00
2024-07-11 12:48:40 -04:00
2024-07-11 16:06:58 +09:00
2024-07-12 07:58:32 +02:00
2024-07-12 04:22:47 +08:00
2024-07-12 08:01:42 +02:00
2024-07-10 12:59:41 +08:00
2024-04-08 22:43:33 +02:00
2023-12-31 23:09:19 -08:00
2024-07-11 15:29:12 +02:00
2024-07-07 16:11:26 +08:00
2024-07-11 15:29:12 +02:00

This is the FreeBSD Ports Collection.  For an easy to use
WEB-based interface to it, please see:

	https://www.FreeBSD.org/ports

For general information on the Ports Collection, please see the
FreeBSD Handbook ports section which is available from:

	https://docs.freebsd.org/en/books/handbook/ports/
		for the latest official version
	or:
	The ports(7) manual page (man ports).

These will explain how to use ports and packages.

If you would like to search for a port, you can do so easily by
saying (in /usr/ports):

	make search name="<name>"
	or:
	make search key="<keyword>"

which will generate a list of all ports matching <name> or <keyword>.
make search also supports wildcards, such as:

	make search name="gtk*"

For information about contributing to FreeBSD ports, please see the Porter's
Handbook, available at:

	https://docs.freebsd.org/en/books/porters-handbook/

NOTE:  This tree will GROW significantly in size during normal usage!
The distribution tar files can and do accumulate in /usr/ports/distfiles,
and the individual ports will also use up lots of space in their work
subdirectories unless you remember to "make clean" after you're done
building a given port.  /usr/ports/distfiles can also be periodically
cleaned without ill-effect.
S
Description
No description provided
Readme 2 GiB
Languages
Makefile 59.7%
C 16.1%
Shell 7.2%
Roff 5%
C++ 3.7%
Other 7%