freebsd-src/usr.sbin/ctladm
Mark Johnston 7d6932d20a ctladm: Fix a race when loading ctl.ko
If multiple ctladm processes try to load ctl.ko at the same time, only
one will succeed.  Handle this possibility by retrying the operation
(open /dev/cam/ctl) if kldload returns EEXIST, rather than bailing.
This at least helps ensure that ctladm tests can be run in parallel
when ctl.ko is not preloaded.

Reviewed by:	asomers
MFC after:	1 week
2024-06-25 15:29:03 -04:00
..
tests ctladm: add a copyright header to the port test 2024-06-24 09:17:27 -06:00
ctladm.8 ctladm: deprecate the undocumented "port -l" option 2024-06-18 15:13:44 -06:00
ctladm.c ctladm: Fix a race when loading ctl.ko 2024-06-25 15:29:03 -04:00
ctladm.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile Add some ATF tests for ctladm 2024-06-10 10:01:25 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
util.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00