Welcome! Log In Create A New Profile

Advanced

Intercepting USR1 in a module

Andrew Punch
February 14, 2014 05:36PM
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.

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Intercepting USR1 in a module

Andrew Punch 678 February 14, 2014 05:36PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 140
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready