diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-01-12 10:56:40 +0800 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-01-12 10:56:40 +0800 |
commit | 441d56a12a90bbb5f6e58717a1e6b9bfe5c82efc (patch) | |
tree | b918813c99b8ff5d92312328151885bf2b3dfa5a /src/bus-proxyd | |
parent | 348ced909724a1331b85d57aede80a102a00e428 (diff) |
bus: properly handle EOF error conditions in proxyd
EOF is not an error so we should not print an error message about it.
Diffstat (limited to 'src/bus-proxyd')
-rw-r--r-- | src/bus-proxyd/bus-proxyd.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/bus-proxyd/bus-proxyd.c b/src/bus-proxyd/bus-proxyd.c index a14d7c822..f4d6fab40 100644 --- a/src/bus-proxyd/bus-proxyd.c +++ b/src/bus-proxyd/bus-proxyd.c @@ -608,8 +608,13 @@ int main(int argc, char *argv[]) { k = sd_bus_send(b, m, NULL); if (k < 0) { - r = k; - log_error("Failed to send message: %s", strerror(-r)); + if (k == -ECONNRESET) + r = 0; + else { + r = k; + log_error("Failed to send message: %s", strerror(-r)); + } + goto finish; } } @@ -653,8 +658,13 @@ int main(int argc, char *argv[]) { k = sd_bus_send(a, m, NULL); if (k < 0) { - r = k; - log_error("Failed to send message: %s", strerror(-r)); + if (r == -ECONNRESET) + r = 0; + else { + r = k; + log_error("Failed to send message: %s", strerror(-r)); + } + goto finish; } } |