gnome-keyring/gnome-keyring-2.29.90-ssh-a...

25 lines
871 B
Diff

From 5fa82147450c0910072d9aa86e62a42a23576215 Mon Sep 17 00:00:00 2001
From: Stef Walter <stef@memberwebs.com>
Date: Sun, 14 Feb 2010 00:22:10 +0000
Subject: [ssh-agent] Don't raise error if ssh client disconnects early.
---
diff --git a/daemon/ssh-agent/gkd-ssh-agent.c b/daemon/ssh-agent/gkd-ssh-agent.c
index 7e6c801..0a851ce 100644
--- a/daemon/ssh-agent/gkd-ssh-agent.c
+++ b/daemon/ssh-agent/gkd-ssh-agent.c
@@ -85,8 +85,9 @@ write_all (int fd, const guchar *buf, int len)
if (res <= 0) {
if (errno == EAGAIN && errno == EINTR)
continue;
- g_warning ("couldn't write %u bytes to client: %s", all,
- res < 0 ? g_strerror (errno) : "");
+ if (errno != EPIPE)
+ g_warning ("couldn't write %u bytes to client: %s", all,
+ res < 0 ? g_strerror (errno) : "");
return FALSE;
} else {
len -= res;
--
cgit v0.8.3.1