Re: [Libusbx-devel] stress test failed under Linux

2013-06-16 Thread Hans de Goede
Hi, On 06/14/2013 04:34 PM, Nathan Hjelm wrote: > Sorry for the mistake. Don't know why I didn't catch that earlier. Well my patch is wrong too, besides adding the pthread_join, I instinctively swapped the location of the pthread_cancel and the udev_monitor_unref(udev_monitor); call, thinking tha

Re: [Libusbx-devel] RFC: Make usbi_log_v() print atomically to stderr

2013-06-16 Thread Hans de Goede
Hi, On 06/15/2013 12:03 AM, Chris Dickens wrote: > Hi, > > I have an application that prints to stderr when debugging is enabled. It is > multithreaded, so stderr gets a lot of concurrent activity. I have noticed > that libusbx output is often broken up, and looking at the usbi_log_v() > functi

Re: [Libusbx-devel] hotplug_poll() on Linux hangs

2013-06-16 Thread Hans de Goede
Hi, On 06/14/2013 08:04 PM, Chris Dickens wrote: > Hi, > > Here's two patches to address this, one for usbi_pipe and one for darwin. Thanks for the patches, I've applied (and pushed) the 1st patch, I'll let Nathan deal with the 2nd one. Regards, Hans ---