mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-24 10:52:50 +07:00
socket: don't close sockets when activating per-connection units
This commit is contained in:
parent
db12315a18
commit
73883adc1e
@ -976,7 +976,8 @@ int exec_spawn(ExecCommand *command,
|
|||||||
/* Close sockets very early to make sure we don't
|
/* Close sockets very early to make sure we don't
|
||||||
* block init reexecution because it cannot bind its
|
* block init reexecution because it cannot bind its
|
||||||
* sockets */
|
* 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;
|
r = EXIT_FDS;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user