error_log cannot be reopened when kill a USR1 signal

Igor Sysoev is at rambler-co.ru
Sat Oct 10 10:26:29 MSD 2009


On Sat, Oct 10, 2009 at 09:44:09AM +0800, 任晓磊 wrote:

> After patched, nginx would not keep error.log.1 open, but still keep
> three error.log open.
> Should it work this way?

nginx should keep open two error.log files, one of them is stderr
redirection, and its files descriptor number is always 2:

l-wx------  1 root root 64 Oct  9 11:08 2 -> /usr/local/nginx/logs/error.log

Could you post the current open files state ?

> 2009/10/9 Igor Sysoev <is at rambler-co.ru>:
> > The attached patch fixes the bug. The bug had appeared somewhere in 0.7.x,
> > probably in 0.7.53, however, I'm not sure.
> 
> -- 
> Ren Xiaolei


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list