Send message from daemon to client
This commit is contained in:
@@ -113,15 +113,18 @@ static void *worker_task(zsock_t *pipe, char *disk_path) {
|
|||||||
|
|
||||||
// Sending reply
|
// Sending reply
|
||||||
/* zmsg_send(&msg, pipe); */
|
/* zmsg_send(&msg, pipe); */
|
||||||
/* zstr_send(pipe, ); */
|
|
||||||
zmsg_t *reply = zmsg_new();
|
zmsg_t *reply = zmsg_new();
|
||||||
if (!reply) {
|
if (!reply) {
|
||||||
printf("wuddahec\n");
|
printf("wuddahec\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
zmsg_pushstr(reply, "From worker!");
|
||||||
|
|
||||||
|
zmsg_send(&reply, pipe);
|
||||||
|
|
||||||
zmsg_destroy(&msg);
|
zmsg_destroy(&msg);
|
||||||
|
zmsg_destroy(&reply);
|
||||||
}
|
}
|
||||||
|
|
||||||
guestfs_close(g);
|
guestfs_close(g);
|
||||||
|
|||||||
Reference in New Issue
Block a user