Lua Variable access bug?
agentzh
agentzh at gmail.com
Thu May 17 13:13:34 UTC 2012
On Thu, May 17, 2012 at 9:06 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
>
> No, disregard this patch. It will break things if new
> configuration will be rejected for some reason, as global in
> master will be left in an inconsistent state. As a result
> incorrect worker processes will be spawn e.g. after abnormal
> termination of a worker process (or after SIGWINCH + SIGHUP
> sequence).
>
> Allocating temporary copy of a variable looks like the only
> correct way.
>
Indeed. Modifying static/global variables is almost always dangerous
for configuration reloading :)
Thanks!
-agentzh
More information about the nginx-devel
mailing list