i would say that USR1 would be the better signal to use. stays inline
w/ the nginx[0] way to do it. SIGHUP is used by apache[1] as a rather
large kludge, just remember that you'll need a global static volatile
sig_atomic_t somewhere to set the signal mask back[2] when coming back
from a function.
i can't believe you guys don't trap most usergenerated signals like
Richard W. Stevens says too!
but either way it would be *very* nice to be able to rotate a log. if
i get done making dinner early enough i might send in a patch tonight.
--timball
[0]
http://www.ruby-forum.com/topic/134115
[1]
http://httpd.apache.org/docs/2.2/stopping.html
[2] so says RWS in APUE 10.15
On Oct 15, 3:27 pm, Eliot Horowitz <
eliothorow...@gmail.com> wrote:
> What do you guys think about USR1 for rotating logs?
> I'm a bti reluctant to use HUP
>