[gnome-keyring] [ssh-agent] Don't raise error if ssh client disconnects early.
- From: Stefan Walter <stefw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-keyring] [ssh-agent] Don't raise error if ssh client disconnects early.
- Date: Sun, 14 Feb 2010 00:24:14 +0000 (UTC)
commit 5fa82147450c0910072d9aa86e62a42a23576215
Author: Stef Walter <stef memberwebs com>
Date: Sun Feb 14 00:22:10 2010 +0000
[ssh-agent] Don't raise error if ssh client disconnects early.
daemon/ssh-agent/gkd-ssh-agent.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]