summaryrefslogtreecommitdiff
path: root/apt-private/private-source.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2019-01-29 10:17:33 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2019-02-05 11:03:40 +0100
commit97412ac47a974b1eb0e8280cf11b3b80ff1ba17f (patch)
treeb7fb9d5fab50639a618d7d92fd9b89b1c563ab55 /apt-private/private-source.cc
parentf79591ffe661f40562e63e331e3a0282d3a5bfc6 (diff)
private-json-hooks.cc: deal with EPIPE
While running our CI we noticed that sometimes we see an error from the new json hooks code. The error message is: ``` E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true: Broken pipe ``` when purging the snapd package which provides the hook. This indicates that we should probably also consider EPIPE not an error (just like we do for ECONNRESET). This PR does exactly this. (cherry picked from commit 6af48a7f83540c807be1d2777470d23e6b260eb8) LP: #1814543
Diffstat (limited to 'apt-private/private-source.cc')
0 files changed, 0 insertions, 0 deletions