restart: make reply an array, add forgotten test to git (#3750)

related to #3565
This commit is contained in:
Michael Stapelberg
2019-07-29 13:21:34 -07:00
committed by GitHub
parent e4ecc6e4a1
commit 5bb7b73a4a
2 changed files with 26 additions and 1 deletions

View File

@ -1655,7 +1655,7 @@ void ipc_send_binding_event(const char *event_type, Binding *bind) {
*/
void ipc_confirm_restart(ipc_client *client) {
DLOG("ipc_confirm_restart(fd %d)\n", client->fd);
static const char *reply = "{\"success\":true}";
static const char *reply = "[{\"success\":true}]";
ipc_send_client_message(
client, strlen(reply), I3_IPC_REPLY_TYPE_COMMAND,
(const uint8_t *)reply);