Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: падение мастер процесса
- To: nginx-ru@xxxxxxxxx
- Subject: Re: падение мастер процесса
- From: Alexandr Gomoliako <zzz@xxxxxxxxxx>
- Date: Thu, 10 May 2012 22:01:29 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=x/JR1zTl009/3+8ElyknnitmSogyZ3C5AoRHV8zLPhA=; b=CDeDB5NqcOgi5ZcZuMH1TQoQOgScBu4BW8Pt4twGZ8L298MuMHT3T7dqZtpvtG7dKm sYRXQwH3VNZa3/hUW5KC+oH33AB5WIYCrU2TEjB5dqCaA5ilMIAfWvdq8C8Kpg+fxsYz IkRgNmbt5sMuwHKS3TE9RfS1uswJy+9J7MQWZzxVXLimKrvBeVtib5ywCjjyeFDtOmAl gNlcI36kws/XmY3HqbW46VG2QeUfNkkQP5Lrq1uG2X2PFrpBfAzyFQ2aNFWjr0/T1R3J D9q0yV3ejjpQxruGcfXnN84azMc3lZ1jsecn7nImKWZX4LnI5O+8zplcKABRWJCzTO86 XRAQ==
- In-reply-to: <D21DDAC4-0D32-4B0E-8D7A-44B2B9C30D10@gmail.com>
- References: <D21DDAC4-0D32-4B0E-8D7A-44B2B9C30D10@gmail.com>
> Заметил, что падает мастер процесс при отправке -HUP,
Тоже недавно на это наткнулся, до вот такого патча дошло, попробуй:
diff --git a/src/os/unix/ngx_time.c b/src/os/unix/ngx_time.c
--- a/src/os/unix/ngx_time.c
+++ b/src/os/unix/ngx_time.c
@@ -40,12 +40,12 @@
#elif (NGX_LINUX)
time_t s;
- struct tm *t;
+ struct tm *t, t_r;
char buf[4];
s = time(0);
- t = localtime(&s);
+ t = localtime_r(&s, &t_r);
strftime(buf, 4, "%H", t);
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|