ngx_execute_proc

Tolga Ceylan tolga.ceylan at gmail.com
Sat Aug 22 22:56:07 UTC 2015


On Sat, Aug 22, 2015 at 8:38 AM, Ricardo Iramar dos Santos
<riramar at gmail.com> wrote:
> Hi All,
>
> This is my first post so take easy on me. :)
> I'm doing a security research about HTTP(S) web servers and I'm trying
> to understand a little bit of nginx source code.
> In my research I need to understand how the function ngx_execute_proc
> works and in which use cases this function is invoked.
> I tried to read the source code to understand but I'm not familiar
> with nginx source code and there's no much comments on it.
> I tried to find a specific material about the source code using google
> or the resource pages but I couldn't find.
> Is there any material that I can read and get a better understand of
> how ngx_execute_proc works and in which use cases this function is
> invoked?
>
> Thanks in advanced!
> Ricardo Iramar
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel

AFAIK, ngx_execute_proc usage is limited to new binary swap (upgrading
nginx binary.)

See ngx_exec_new_binary() which will eventually invoke
ngx_execute_proc() which is a
wrapper over execve.

For more info:

http://wiki.nginx.org/CommandLine#Upgrading_To_a_New_Binary_On_The_Fly



More information about the nginx-devel mailing list