summaryrefslogtreecommitdiffstats
path: root/abs/extra/cups/fix-infinite-usb-loop.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 19:43:13 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 19:43:13 (GMT)
commit682fa53ae5764bbf06c49618fbdf6610712533ae (patch)
tree11dac6536928cf207d672d8c2248f832eb8e5802 /abs/extra/cups/fix-infinite-usb-loop.patch
parent74b3d6193d21af031f39b797cb374fc332934808 (diff)
downloadlinhes_pkgbuild-682fa53ae5764bbf06c49618fbdf6610712533ae.zip
linhes_pkgbuild-682fa53ae5764bbf06c49618fbdf6610712533ae.tar.gz
linhes_pkgbuild-682fa53ae5764bbf06c49618fbdf6610712533ae.tar.bz2
cups 1.5.3
Diffstat (limited to 'abs/extra/cups/fix-infinite-usb-loop.patch')
-rw-r--r--abs/extra/cups/fix-infinite-usb-loop.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/abs/extra/cups/fix-infinite-usb-loop.patch b/abs/extra/cups/fix-infinite-usb-loop.patch
deleted file mode 100644
index bad179e..0000000
--- a/abs/extra/cups/fix-infinite-usb-loop.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-diff -urNad cups-1.4.0~/backend/usb-libusb.c cups-1.4.0/backend/usb-libusb.c
---- cups-1.4.0~/backend/usb-libusb.c 2009-08-08 00:24:14.000000000 +0200
-+++ cups-1.4.0/backend/usb-libusb.c 2009-09-02 16:37:31.000000000 +0200
-@@ -158,7 +158,7 @@
-
- while (poll(pfds, 2, -1) > 0)
- {
-- if (pfds[0].revents & POLLIN)
-+ if (pfds[0].revents & (POLLIN + POLLHUP))
- {
- if ((bytes = read(print_fd, buffer, sizeof(buffer))) > 0)
- {
-@@ -179,7 +179,12 @@
- }
-
- if (pfds[1].revents & POLLIN)
-- tbytes += side_cb(printer, print_fd);
-+ {
-+ if ((bytes = side_cb(printer, print_fd)) < 0)
-+ pfds[1].events = 0; /* Filter has gone away... */
-+ else
-+ tbytes += bytes;
-+ }
- }
- }
-
-@@ -747,7 +752,7 @@
- if (cupsSideChannelRead(&command, &status, data, &datalen, 1.0))
- {
- _cupsLangPuts(stderr, _("WARNING: Failed to read side-channel request!\n"));
-- return (0);
-+ return (-1);
- }
-
- switch (command)