ðòïåëôù 


  áòèé÷ 


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



On Wed, May 04, 2011 at 08:08:57AM -0400, jjjx128 wrote:
> ðÏ-ÍÏÅÍÕ ÌÉÛÎÑÑ ËÁ×ÙÞËÁ × 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;
>                            }

äÁ, Å£ ÂÙÔØ ÎÅ ÄÏÌÖÎÏ, ÓÐÁÓÉÂÏ.


-- 
Igor Sysoev

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


 




Copyright © Lexa Software, 1996-2009.