machine: rework Operation logic to reuse in varlink interface

This commit is contained in:
Ivan Kruglov
2024-10-21 17:08:14 +02:00
committed by Lennart Poettering
parent 9312b3dc28
commit d8964f9d4d
5 changed files with 68 additions and 43 deletions
+1 -1
View File
@@ -856,7 +856,7 @@ int bus_machine_method_copy(sd_bus_message *message, void *userdata, sd_bus_erro
/* Copying might take a while, hence install a watch on the child, and return */
r = operation_new(m->manager, m, child, message, errno_pipe_fd[0], NULL);
r = operation_new_with_bus_reply(m->manager, m, child, message, errno_pipe_fd[0], /* ret= */ NULL);
if (r < 0) {
(void) sigkill_wait(child);
return r;