From: Michael Gernoth Date: Sat, 12 Apr 2008 13:46:00 +0000 (+0200) Subject: fix for mutex deadlock when closing and reopening the cable connection X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver/commitdiff_plain/0a2341bb36399a74ee540d75de1e63e1b4960f99?ds=sidebyside;hp=19acdb82e419d2075cc277a273941fb1e9a51ba0 fix for mutex deadlock when closing and reopening the cable connection --- diff --git a/xpcu.c b/xpcu.c index 66c4fe3..93d0424 100644 --- a/xpcu.c +++ b/xpcu.c @@ -294,6 +294,8 @@ static void xpcu_init(void) { usb_find_devices(); busses = usb_get_busses(); + + pthread_mutex_init(&dummy_interrupt, NULL); }