]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machined: don't bother explicitly closing the errno pipe
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Jun 2016 13:59:42 +0000 (15:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 24 Jun 2016 13:59:44 +0000 (15:59 +0200)
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.

src/machine/machine-dbus.c

index de5d98f23ef6ee14594d1228cf7c9e650db0fa0c..f50f363ba30a18da96d0bee414554776ea4add56 100644 (file)
@@ -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);
         }