diff --git a/cups-polld-busy-loop.patch b/cups-polld-busy-loop.patch new file mode 100644 index 0000000..0d99d7f --- /dev/null +++ b/cups-polld-busy-loop.patch @@ -0,0 +1,12 @@ +diff -up cups-1.4.7/cups/request.c.polld-busy-loop cups-1.4.7/cups/request.c +--- cups-1.4.7/cups/request.c.polld-busy-loop 2011-03-04 19:28:38.000000000 +0000 ++++ cups-1.4.7/cups/request.c 2011-07-13 10:21:25.397211968 +0100 +@@ -395,7 +395,7 @@ cupsGetResponse(http_t *http, /* I - + { + status = httpUpdate(http); + } +- while (http->state == HTTP_POST_RECV); ++ while (status != HTTP_ERROR && http->state == HTTP_POST_RECV); + + DEBUG_printf(("2cupsGetResponse: status=%d", status)); + diff --git a/cups.spec b/cups.spec index f40594c..f80bbce 100644 --- a/cups.spec +++ b/cups.spec @@ -13,7 +13,7 @@ Summary: Common Unix Printing System Name: cups Version: 1.4.7 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv2 Group: System Environment/Daemons Source: http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2 @@ -71,6 +71,7 @@ Patch32: cups-texttops-rotate-page.patch Patch33: cups-usb-parallel.patch Patch34: cups-str3535.patch Patch35: cups-str3875.patch +Patch36: cups-polld-busy-loop.patch Patch40: cups-avahi-1-config.patch Patch41: cups-avahi-2-backend.patch @@ -290,6 +291,8 @@ module. %patch34 -p1 -b .str3535 # Fix SNMP supply level crasher (STR #3875, bug #719057). %patch35 -p1 -b .str3875 +# Avoid busy loop in cups-polld (bug #720921). +%patch36 -p1 -b .polld-busy-loop # Avahi support: # - discovery in the dnssd backend @@ -627,6 +630,9 @@ rm -rf $RPM_BUILD_ROOT %{php_extdir}/phpcups.so %changelog +* Wed Jul 13 2011 Tim Waugh 1:1.4.7-7 +- Avoid busy loop in cups-polld (bug #720921). + * Thu Jul 7 2011 Jiri Popelka 1:1.4.7-6 - Fix SNMP supply level crasher (STR #3875, bug #719057).