From 859ee900489ef315533e34f5f02fee8f86b72b96 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Sun, 3 Mar 2024 15:34:51 -0500 Subject: [PATCH] Send message from daemon to client --- guestfs-inspectd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/guestfs-inspectd.c b/guestfs-inspectd.c index cf7d713..bc87f56 100644 --- a/guestfs-inspectd.c +++ b/guestfs-inspectd.c @@ -113,15 +113,18 @@ static void *worker_task(zsock_t *pipe, char *disk_path) { // Sending reply /* zmsg_send(&msg, pipe); */ - /* zstr_send(pipe, ); */ + zmsg_t *reply = zmsg_new(); if (!reply) { printf("wuddahec\n"); exit(EXIT_FAILURE); } + zmsg_pushstr(reply, "From worker!"); + + zmsg_send(&reply, pipe); zmsg_destroy(&msg); - + zmsg_destroy(&reply); } guestfs_close(g);