Is the ioctl blocking?
On Fri, May 22, 2009 at 5:37 PM, David Imhoff<dimh...@xs4all.nl> wrote: > Hi, > > When running OpenCT on OpenBSD the kernel output a "ugenpoll: no edesc" every > second to the main console. This seems to be caused by the fact that ugen > doesn't support polling on a control endpoint. Normally this is harmless > except that the log is spammed, but if the kernel isn't compiled with > diagnostics enabled this will lead to a NULL pointer dereference. > > The ifd_sysdep_usb_poll_presence() function in src/ifd/sys-bsd.c caused the > mainloop to poll on a control endpoint. Therefor I modified this function to > use an ioctl instead to determine if the device is still presence. > > Tested with OpenBSD 4.3 and a Omnikey 6121. > > David > _______________________________________________ > opensc-devel mailing list > opensc-devel@lists.opensc-project.org > http://www.opensc-project.org/mailman/listinfo/opensc-devel > _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel