summaryrefslogtreecommitdiff
path: root/src/machine/machine-dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-06-24 15:59:42 +0200
committerLennart Poettering <lennart@poettering.net>2016-06-24 15:59:44 +0200
commit5816a84352e19492df61036d26eff0eb00f2d8c0 (patch)
tree8428df38d3d8e6bebf43c3e91f34a62f9cf65edf /src/machine/machine-dbus.c
parent2b40998d3c02ff4097373150cb47776ced0be315 (diff)
machined: don't bother explicitly closing the errno pipe
There's no point in explicitly closing the errno pipe, if we exit right after anyway. It doesn't hurt doing this either, but let's do this the same way for all cases where we use the "Operation" object right now, and in all other cases we do not close the pipe explicitly, hence don't do so here either.
Diffstat (limited to 'src/machine/machine-dbus.c')
-rw-r--r--src/machine/machine-dbus.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c
index de5d98f23e..f50f363ba3 100644
--- a/src/machine/machine-dbus.c
+++ b/src/machine/machine-dbus.c
@@ -1200,8 +1200,6 @@ int bus_machine_method_copy(sd_bus_message *message, void *userdata, sd_bus_erro
child_fail:
(void) write(errno_pipe_fd[1], &r, sizeof(r));
- errno_pipe_fd[1] = safe_close(errno_pipe_fd[1]);
-
_exit(EXIT_FAILURE);
}