sd-bus: do not try to close already closed fd (#8392)

Fixes #8376, which is introduced by 2b33ab0957.
This commit is contained in:
Yu Watanabe
2018-03-08 22:19:35 +09:00
committed by Zbigniew Jędrzejewski-Szmek
parent c58493c00a
commit 280029d18f

View File

@@ -960,8 +960,6 @@ int bus_socket_exec(sd_bus *b) {
if (r == 0) {
/* Child */
safe_close(s[0]);
if (rearrange_stdio(s[1], s[1], STDERR_FILENO) < 0)
_exit(EXIT_FAILURE);