I’m a module developer, I found nginx start process is:
- blahblahblah
- listen
- invoke ‘init_module’
- register signal handler
- fork master.
- master setsid()
- master getpid() and write to nginx.pid
- master mainloop()
Now I want do sth in ‘init_master’, but it seems that nginx do not
implement init_master hook in 0.6.x & 0.7.x,
and the prototype definition in ngx_conf_file.h is ‘ngx_int_t
(*init_master)(ngx_log_t *log);’, but other hook functions’s argument
is ‘ngx_cycle_t *cycle’
How to do ‘init_master’?
Sorry for my pool english