]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Don't pass config file in two fds to child processes
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 15 Mar 2023 10:14:54 +0000 (12:14 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 20 Mar 2023 10:24:34 +0000 (10:24 +0000)
Broken by 1955e81a2ffe023f937d87f2b555bcec0fb4aee9

src/master/service-process.c

index 206ae65fa2bda42c517d761146bdb8e6c41c6acd..e08891a945a5f112feafa75e6a60a5357e69fbee 100644 (file)
@@ -223,7 +223,6 @@ service_dup_fds(struct service *service)
                   on config process. Note that we don't want to do this for
                   other processes, since it prevents config reload. */
                i_assert(global_config_fd != -1);
-               fd_close_on_exec(global_config_fd, FALSE);
                if (lseek(global_config_fd, 0, SEEK_SET) < 0)
                        i_fatal("lseek(config fd, 0) failed: %m");
                dup2_append(&dups, global_config_fd, MASTER_CONFIG_FD);