[gtk+] Signalize that CUPS connection is available when EISCONN occurs
- From: Marek Kašík <mkasik src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Signalize that CUPS connection is available when EISCONN occurs
- Date: Tue, 19 May 2009 10:12:47 -0400 (EDT)
commit 1eff9aba246a061133365516438c90d532ec74ac
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 af6e8d5..bcd03dc 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]