summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormark@ecs.vuw.ac.nz <mark@ecs.vuw.ac.nz>2009-05-19 16:08:21 +0200
committerMarek Kasik <mkasik@redhat.com>2009-05-19 16:08:21 +0200
commit1eff9aba246a061133365516438c90d532ec74ac (patch)
tree5f488502e7532cf6812f48b6a2f4aa32cd8b093d /modules
parent3969d1b9691889ccc98b4aad31e2e809849bdc72 (diff)
downloadgdk-pixbuf-1eff9aba246a061133365516438c90d532ec74ac.tar.gz
Signalize that CUPS connection is available when EISCONN occurs
Add test for EISCONN error when testing whether a connection to CUPS server is available (#576678 - patch by mark@ecs.vuw.ac.nz). Signed-off-by: Marek Kasik <mkasik@redhat.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/printbackends/cups/gtkcupsutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/printbackends/cups/gtkcupsutils.c b/modules/printbackends/cups/gtkcupsutils.c
index af6e8d5a7..bcd03dc4b 100644
--- a/modules/printbackends/cups/gtkcupsutils.c
+++ b/modules/printbackends/cups/gtkcupsutils.c
@@ -1567,7 +1567,7 @@ gtk_cups_connection_test_get_state (GtkCupsConnectionTest *test)
error_code = errno;
- if (code == 0)
+ if (code == 0 || error_code == EISCONN)
{
close (test->socket);
test->socket = -1;