[gtk+/gtk-2-16] Signalize that CUPS connection is available when EISCONN occurs
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/gtk-2-16] Signalize that CUPS connection is available when EISCONN occurs
- Date: Fri, 29 May 2009 23:07:22 -0400 (EDT)
commit 68c87c6f9c39689e11dc56de52d81788a82b8dc4
Author: mark ecs vuw ac nz <mark ecs vuw ac nz>
Date: Tue May 19 16:08:21 2009 +0200
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>
---
modules/printbackends/cups/gtkcupsutils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/printbackends/cups/gtkcupsutils.c b/modules/printbackends/cups/gtkcupsutils.c
index 363f8f5..71accbd 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]