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:

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

modules and thread creation

2013-10-13 Thread mzabani
I've seen an older thread saying that nginx modules shouldn't create threads. I was wondering how valid that still is, and if there is a guide or pointers on how to deal with threads in a module. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,243662,243662#msg-243662 __