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
committerMatthias Clasen <mclasen@redhat.com>2009-05-29 22:46:55 -0400
commit68c87c6f9c39689e11dc56de52d81788a82b8dc4 (patch)
tree16e345107f20c72f6ba99076910cee0ef43a43da /modules
parent13530e502467913ef34b43fc5dc6184595cd9471 (diff)
downloadgdk-pixbuf-68c87c6f9c39689e11dc56de52d81788a82b8dc4.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 363f8f52e..71accbd5b 100644
--- a/modules/printbackends/cups/gtkcupsutils.c
+++ b/modules/printbackends/cups/gtkcupsutils.c
@@ -1290,7 +1290,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;