]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
boot-server: allow premature client close of socket on update replies
authorRay Strode <rstrode@redhat.com>
Tue, 20 May 2014 17:16:28 +0000 (13:16 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 20 May 2014 17:16:28 +0000 (13:16 -0400)
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.

src/ply-boot-server.c

index 3e67bfbf2fa7de00e507a2914b4ada3bc4a534b1..c5a2f7feb6816818c07c95a0c4f48af5f7aec316 100644 (file)
@@ -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");