Re: Running code in nginx's master process

2013-10-24 Thread Maxim Dounin
Hello! On Thu, Oct 24, 2013 at 08:37:03AM -0400, mzabani wrote: > It seems like the init_module callback is not executed in nginx's master > process. At least, I've printed a call to getpid() and the pid returned was > that of a process that wasn't running, which makes me think it is executed > i

Re: Running code in nginx's master process

2013-10-24 Thread mzabani
It seems like the init_module callback is not executed in nginx's master process. At least, I've printed a call to getpid() and the pid returned was that of a process that wasn't running, which makes me think it is executed in a process that forks the master process itself. Posted at Nginx Forum:

Re: Running code in nginx's master process

2013-10-22 Thread Maxim Dounin
Hello! On Mon, Oct 21, 2013 at 08:27:01PM -0400, mzabani wrote: > Is it possible to have a module run code in nginx's master process, i.e. not > in a worker process? > I know init_master is just a stub for now. Are there any chances this gets > implemented in the near future? I wouldn't recommen

Running code in nginx's master process

2013-10-21 Thread mzabani
Is it possible to have a module run code in nginx's master process, i.e. not in a worker process? I know init_master is just a stub for now. Are there any chances this gets implemented in the near future? Thanks in advance, Marcelo. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,243942