summaryrefslogtreecommitdiff
path: root/backend/socket.c
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-06-23 05:26:17 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-06-23 05:26:17 +0000
commit09a101d671d39312a756c325d8463a1a02f582a6 (patch)
tree09a2338172d0eca839ad4f82524f2846aae6ffdd /backend/socket.c
parent3d8365b8dc12c660de084e4047b8648fc377ed16 (diff)
downloadcups-09a101d671d39312a756c325d8463a1a02f582a6.tar.gz
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@334 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'backend/socket.c')
-rw-r--r--backend/socket.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/backend/socket.c b/backend/socket.c
index 19994f042..0cb2629aa 100644
--- a/backend/socket.c
+++ b/backend/socket.c
@@ -1,5 +1,5 @@
/*
- * "$Id: socket.c 6438 2007-04-03 17:52:41Z mike $"
+ * "$Id: socket.c 6591 2007-06-21 20:35:28Z mike $"
*
* AppSocket backend for the Common UNIX Printing System (CUPS).
*
@@ -458,7 +458,11 @@ side_cb(int print_fd, /* I - Print file */
* Our sockets disable the Nagle algorithm and data is sent immediately.
*/
- status = CUPS_SC_STATUS_OK;
+ if (backendDrainOutput(print_fd, device_fd))
+ status = CUPS_SC_STATUS_IO_ERROR;
+ else
+ status = CUPS_SC_STATUS_OK;
+
datalen = 0;
break;
@@ -522,5 +526,5 @@ wait_bc(int device_fd, /* I - Socket */
/*
- * End of "$Id: socket.c 6438 2007-04-03 17:52:41Z mike $".
+ * End of "$Id: socket.c 6591 2007-06-21 20:35:28Z mike $".
*/