diff options
author | Ray Strode <rstrode@redhat.com> | 2014-05-20 13:16:28 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2014-05-20 13:16:28 -0400 |
commit | 4e312bd5a09f52e02d4961d5bf15b01027533a75 (patch) | |
tree | 45a4e1b1b3730fefd5247832c2fafc9a82caddf4 | |
parent | 60626b10ef644852592be092c5aaf57ad382d04c (diff) |
boot-server: allow premature client close of socket on update replies
systemd doesn't block waiting for a reply to its update request, since
it would pointlessly slow down boot up.
This commit makes sure we don't bother logging that case.
-rw-r--r-- | src/ply-boot-server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ply-boot-server.c b/src/ply-boot-server.c index 3e67bfbf..c5a2f7fe 100644 --- a/src/ply-boot-server.c +++ b/src/ply-boot-server.c @@ -415,7 +415,8 @@ ply_boot_connection_on_request (ply_boot_connection_t *connection) if (!ply_write (connection->fd, PLY_BOOT_PROTOCOL_RESPONSE_TYPE_ACK, - strlen (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_ACK))) + strlen (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_ACK)) && + errno != EPIPE) ply_trace ("could not finish writing update reply: %m"); ply_trace ("got update request"); |