ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nginx-1.0.1


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: nginx-1.0.1
  • From: "jjjx128" <nginx-forum@xxxxxxxx>
  • Date: Wed, 04 May 2011 08:08:57 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=QkFpbWc15XQ4/4JVEzwboWMUZlW74CzZtNXsoluGpAQ=; b=Ejy7T3mN6V+/ZDmqgJ8pZl+4u11l5+PRgIRNjxEuwYL9jBsIV4IlvNO0GDjZ4rGhdO0I7iTQwIdJ0uWoh32K3o3Xn82BfaHqRtAEJAuO40DTwHT/yXQnWOtbnsRnEVfO;
  • In-reply-to: <20110503121519.GU1707@xxxxxxxxx>
  • References: <20110503121519.GU1707@xxxxxxxxx>

ðÏ-ÍÏÅÍÕ ÌÉÛÎÑÑ ËÁ×ÙÞËÁ × ngx_feature_incs:

--- a/auto/unix Tue Apr 12 00:00:00 2011 +0400
+++ b/auto/unix Wed May 04 15:09:05 2011 +0300
@@ -141,14 +141,19 @@
     ngx_feature_name=NGX_SYS_NERR
     ngx_feature_run=value
     ngx_feature_incs='#include <errno.h>
+                      #include <string.h>'
                       #include <stdio.h>'
     ngx_feature_path=
     ngx_feature_libs=
     ngx_feature_test='int  n;
+                      char *p;
                       for (n = 1; n < 1000; n++) {
                           errno = 0;
-                          strerror(n);
-                          if (errno == EINVAL) {
+                          p = strerror(n);
+                          if (errno == EINVAL
+                              || p == NULL
+                              || strncmp(p, "Unknown error", 13) == 0)
+                          {
                               printf("%d", n);
                               return 0;
                           }

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,195213,195541#msg-195541


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.