core/service: only pass socket fds to control processes
If socket is used as stdio, we'd currently imply EXEC_PASS_FDS and dump the whole set of fds to the control processes. This is pretty much unexpected and unnecessary though, instead let's pass only the socket fds. Yes, this is a compat break, but a relatively minor one I'd argue. And we can always revisit things if users do complain.
This commit is contained in:
@@ -2001,7 +2001,6 @@ static int socket_spawn(Socket *s, ExecCommand *c, PidRef *ret_pid) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
exec_params.flags |= EXEC_PASS_FDS;
|
||||
exec_params.fds = TAKE_PTR(fds);
|
||||
exec_params.fd_names = TAKE_PTR(fd_names);
|
||||
exec_params.n_socket_fds = n_fds;
|
||||
|
||||
Reference in New Issue
Block a user