CHANGES IN CUPS V1.2.11
+ - The backends now manage the printer-state-reasons
+ attribute more accurately (STR #2345)
- Java, PHP, Perl, and Python scripts did not work
properly (STR #2342)
- The scheduler would take forever to start if the
* Now loop until we are out of data from print_fd...
*/
- for (print_bytes = 0, print_ptr = print_buffer, offline = 0, paperout = 0, total_bytes = 0;;)
+ for (print_bytes = 0, print_ptr = print_buffer, offline = -1,
+ paperout = -1, total_bytes = 0;;)
{
/*
* Use select() to determine whether we have data to copy around...
* Pause printing to clear any pending errors...
*/
- if (errno == ENXIO && !offline)
+ if (errno == ENXIO && offline != 1)
{
fputs("STATE: +offline-error\n", stderr);
fputs(_("INFO: Printer is currently off-line.\n"), stderr);
if (errno == ENOSPC)
{
- if (!paperout)
+ if (paperout != 1)
{
fputs("STATE: +media-empty-error\n", stderr);
fputs(_("ERROR: Out of paper!\n"), stderr);
}
else if (errno == ENXIO)
{
- if (!offline)
+ if (offline != 1)
{
fputs("STATE: +offline-error\n", stderr);
fputs(_("INFO: Printer is currently off-line.\n"), stderr);