Welcome! Log In Create A New Profile

Advanced

Re: init_master patch?

Maxim Dounin
May 21, 2016 04:24PM
Hello!

On Fri, May 20, 2016 at 11:24:33AM -0700, Stephan Zuercher wrote:

> Hi,
>
> I see in the past there's been questions about ngx_module_t's init_master
> field never being called.
>
> I'm working on a plug-in that needs to execute code in the context of the
> master process (after it's forked to become a daemon) and init_master seems
> like the logical way to do it.
>
> If I contribute a change to call init_master, is it likely to be accepted?
> Or is there some fundamental reason not to do this?

It's believed that init_master is a wrong thing to use in most
cases. In particular, it won't work if a module will be loaded
dynamically.

If you think you need init_master - you may want to reconsider
what you want to do and how to do it properly in nginx.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

init_master patch?

Stephan Zuercher 507 May 20, 2016 02:26PM

Re: init_master patch?

Maxim Dounin 219 May 21, 2016 04:24PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 217
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready