Intercepting USR1 in a module

Andrew Punch apunch at brandscreen.com
Fri Feb 14 22:35:23 UTC 2014


Hi,

I created a dummy log file to test using the flush handler. This was
successful. I will now integrate it with our code.

An alternative (but more complex) method I thought of was to assign an
unused signal, use signalfd() to get a file descriptor then use
ngx_add_event() to add a handler to the main event queue. When this handler
was triggered it could set ngx_reopen=1

Your solution is faster to code up, so I will go with that. Thanks for the
help!

-Andrew

-- 
NOTICE

This e-mail and any attachments are confidential and may contain copyright 
material of Brandscreen or third parties. If you are not the intended 
recipient of this email you should not read, print, re-transmit, store or 
act in reliance on this e-mail or any attachments, and should destroy all 
copies of them. Brandscreen does not guarantee the integrity of any emails 
or any attached files. The views or opinions expressed are the author's own 
and may not reflect the views or opinions of Brandscreen.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20140215/48c296c3/attachment.html>


More information about the nginx-devel mailing list