Commit 73883adc authored by Lennart Poettering's avatar Lennart Poettering
Browse files

socket: don't close sockets when activating per-connection units

parent db12315a
......@@ -976,7 +976,8 @@ int exec_spawn(ExecCommand *command,
/* Close sockets very early to make sure we don't
* block init reexecution because it cannot bind its
* sockets */
if (close_all_fds(fds, n_fds) < 0) {
if (close_all_fds(socket_fd >= 0 ? &socket_fd : fds,
socket_fd >= 0 ? 1 : n_fds) < 0) {
r = EXIT_FDS;
goto fail;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment