[cups.development] Question about open_device.

Michael Sweet msweet at apple.com
Sun Jul 25 23:57:33 PDT 2010


The print_device function does the retry, not open_device...

On Jul 25, 2010, at 9:17 AM, Guido Reina wrote:

> Hi all,
> 
> I was checking the function open_device in the file usb-libusb.c and have seen that, either when usb_claim_interface or usb_set_altinterface are called, it does:
> 
> while (usb_claim_interface(printer->handle, number) < 0)
> {
>  if (errno != EBUSY)
>    fprintf(stderr, "...");
> 
>  goto error;
> }
> 
> So it seems that it will jump to 'error', also when errno == EBUSY, so it won't execute the loop anymore.
> 
> Regards.
> _______________________________________________
> cups-dev mailing list
> cups-dev at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-dev

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair








More information about the cups-devel mailing list