machine: rework Operation logic to reuse in varlink interface
This commit is contained in:
committed by
Lennart Poettering
parent
9312b3dc28
commit
d8964f9d4d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user