cupsBackChannelRead() returns -1

Phil Ineichen pineichen at yahoo.com
Tue Mar 20 08:09:46 PDT 2012


The following code runs fine on CUPS 1.4.6 (Ubuntu 11.04)

byte buf[16];
ssize_t bytesRead = cupsBackChannelRead((char*)buf, sizeof(buf), 2.5);
if(bytesRead == -1)
{
   fprintf(stderr, "DEBUG: cupsBackChannelRead failed, errno=%d\n", errno);
}
else if(bytesRead == 0)
{
   fprintf(stderr, "DEBUG: cupsBackChannelRead no data\n");
}
else
{
   fprintf(stderr, "DEBUG: cupsBackChannelRead has read %i bytes\n", bytesRead);
}

But cupsBackChannelRead() returns -1 and errno 11 on CUPS 1.5.0 (Ubuntu 11.10)!

I am not sure what is causing this behavior (Ubuntu, driver or CUPS).

Thank you!




More information about the cups mailing list