From 7e601c3075f4486066e48e33c50711189d223402 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Mon, 20 Apr 2015 21:30:50 -0400 Subject: [PATCH] Fix log spam while killing scd. Ignore GPG_ERR_EPIPE. --- src/agent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/agent.c b/src/agent.c index 9ed5adb0..8b0e030b 100644 --- a/src/agent.c +++ b/src/agent.c @@ -1147,7 +1147,8 @@ kill_scd (struct agent_s * agent) if (config_get_boolean (NULL, "kill_scd")) { rc = send_to_agent (agent, NULL, NULL, "SCD KILLSCD"); - if (rc && gpg_err_code (rc) != GPG_ERR_NO_SCDAEMON) + if (rc && gpg_err_code (rc) != GPG_ERR_NO_SCDAEMON + && gpg_err_code (rc) != GPG_ERR_EPIPE) log_write ("%s: ERR %u: %s", __FUNCTION__, rc, pwmd_strerror (rc)); } -- 2.11.4.GIT