Question about open_device.

Guido Reina guidoreina at gmail.com
Sun Jul 25 09:17:12 PDT 2010


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.




More information about the cups-devel mailing list