[Pcsclite-muscle] Race condition in hotplug_libusb.c
Ludovic Rousseau
ludovic.rousseau
Thu Nov 6 07:31:23 PST 2014
2014-11-05 15:40 GMT+01:00 Maximilian Stein <maximilian.stein at secunet.com>:
> Hi,
Hello,
> we ran into a race condition in the libusb-1.0 hotplug module of
> pcsc-lite-1.8.11. As usual with race conditions the error was not easy
> to reproduce and to locate. Therefore I would like to contribute the
> attached patch which fixes the race condition.
Why do you use libusb instead of (default) libudev for hotplug?
I think the bug was present because I somewhat followed the example in
pipe(2) manpage.
The example is creating a new process using fork and not a new thread
(with shared memory).
Bye
--
Dr. Ludovic Rousseau
More information about the pcsclite-muscle
mailing list