]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Backends could spin trying to read back-channel data (STR #3001)
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 14 Nov 2008 19:49:14 +0000 (19:49 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 14 Nov 2008 19:49:14 +0000 (19:49 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@8129 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES-1.3.txt
backend/runloop.c

index 3bd3898ce3d60322a7127eaea3a9b2a13dfc47df..e386fed360bd77616ffc6a7895a2b6a2a0001d3c 100644 (file)
@@ -4,6 +4,8 @@ CHANGES-1.3.txt
 CHANGES IN CUPS V1.3.10
 
        - Documentation fixes (STR #2994, STR #2995)
+       - Backends could spin trying to read back-channel data
+         (STR #3001)
        - The HP-GL/2 filter was using the wrong default colors
          (STR #2966)
        - The scheduler incorrectly allowed Get-Jobs operations without a
index 7eb5f91f0a7d5b2fcab90bb361d13f4f7b59a17b..d8d1a775bfceb5f8f27f950147abb3c06ca31c9f 100644 (file)
@@ -283,6 +283,12 @@ backendRunLoop(
                CUPS_LLCAST bc_bytes);
         cupsBackChannelWrite(bc_buffer, bc_bytes, 1.0);
       }
+      else if (bc_bytes < 0 && errno != EAGAIN && errno != EINTR)
+      {
+        fprintf(stderr, "DEBUG: Error reading back-channel data: %s\n",
+               strerror(errno));
+       use_bc = 0;
+      }
     }
 
    /*