diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-14 04:47:57 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-14 04:47:57 +0200 |
commit | 73883adc1eb4c749b0cf6fed210040e57dd7147e (patch) | |
tree | c33894c14d799c24325c7d1fdaf32bd1fc7cd09b /src/execute.c | |
parent | db12315a184de331a2ad670c4af3c4f93e6a464f (diff) | |
download | systemd-73883adc1eb4c749b0cf6fed210040e57dd7147e.tar.gz |
socket: don't close sockets when activating per-connection units
Diffstat (limited to 'src/execute.c')
-rw-r--r-- | src/execute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/execute.c b/src/execute.c index 6b6c2855b4..352def3cfa 100644 --- a/src/execute.c +++ b/src/execute.c @@ -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; } |