From: Ray Strode Date: Thu, 7 Oct 2010 19:34:08 +0000 (-0400) Subject: boot-server: make update handling asyncrhonous X-Git-Tag: 0.8.4~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ca39dacab7f80308769679556b4154f240c170f;p=thirdparty%2Fplymouth.git boot-server: make update handling asyncrhonous This call needs to be cheap since some distros do a ton of updates. --- diff --git a/src/ply-boot-server.c b/src/ply-boot-server.c index b49f9b9f..3fbe8100 100644 --- a/src/ply-boot-server.c +++ b/src/ply-boot-server.c @@ -398,10 +398,18 @@ ply_boot_connection_on_request (ply_boot_connection_t *connection) if (strcmp (command, PLY_BOOT_PROTOCOL_REQUEST_TYPE_UPDATE) == 0) { + + if (!ply_write (connection->fd, + PLY_BOOT_PROTOCOL_RESPONSE_TYPE_ACK, + strlen (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_ACK))) + ply_error ("could not write bytes: %m"); + ply_trace ("got update request"); if (server->update_handler != NULL) server->update_handler (server->user_data, argument, server); free (argument); + free (command); + return; } else if (strcmp (command, PLY_BOOT_PROTOCOL_REQUEST_TYPE_SYSTEM_INITIALIZED) == 0) {