Send message from daemon to client

This commit is contained in:
2024-03-03 15:34:51 -05:00
parent 83f62dc217
commit 859ee90048

View File

@@ -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);