]> git.kaiwu.me - nginx.git/commit
Control API: fixed socket inheritance on binary upgrade
authorSergey Kandaurov <pluknet@nginx.com>
Thu, 10 Sep 2026 21:07:12 +0000 (21:07 +0000)
committerSergey Kandaurov <pluknet@nginx.com>
Fri, 11 Sep 2026 12:27:35 +0000 (16:27 +0400)
commitea5b634fdcdd37e4511d12e7ed384044fd225192
treea2e05cf32322c12696d6503094cd844b2f75fda8
parentdf5269cc425f4cb1288fb8ca9f7e22166103feee
Control API: fixed socket inheritance on binary upgrade

The environment may be replaced while parsing configuration, as it
happens with the perl module, which calls ngx_set_environment() when
creating an interpreter.  As a result, the control socket was not
inherited on binary upgrade.

The variable is now read before ngx_init_cycle(), similarly to
inherited listening sockets.
src/core/nginx.c
src/os/unix/ngx_control.c
src/os/unix/ngx_control.h