Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_solaris_init.c @ 340:10cc350ed8a1 NGINX_0_6_14
nginx 0.6.14
*) Change: now by default the "echo" SSI command uses entity encoding.
*) Feature: the "encoding" parameter in the "echo" SSI command.
*) Feature: the "access_log" directive may be used inside the
"limit_except" block.
*) Bugfix: if all upstream servers were failed, then all servers had
got weight the was equal one until servers became alive; bug
appeared in 0.6.6.
*) Bugfix: a segmentation fault occurred in worker process if
$date_local and $date_gmt were used outside the
ngx_http_ssi_filter_module.
*) Bugfix: a segmentation fault might occur in worker process if debug
log was enabled.
Thanks to Andrei Nigmatulin.
*) Bugfix: ngx_http_memcached_module did not set
$upstream_response_time.
Thanks to Maxim Dounin.
*) Bugfix: a worker process may got caught in an endless loop, if the
memcached was used.
*) Bugfix: nginx supported low case only "close" and "keep-alive"
values in the "Connection" request header line; bug appeared in
0.6.11.
*) Bugfix: sub_filter did not work with empty substitution.
*) Bugfix: in sub_filter parsing.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 15 Oct 2007 00:00:00 +0400 |
parents | e916a291e9aa |
children | 583decdb82a4 |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #include <ngx_config.h> | |
8 #include <ngx_core.h> | |
9 | |
10 | |
11 char ngx_solaris_sysname[20]; | |
12 char ngx_solaris_release[10]; | |
13 char ngx_solaris_version[50]; | |
14 | |
15 | |
88 | 16 static ngx_os_io_t ngx_solaris_io = { |
0 | 17 ngx_unix_recv, |
18 ngx_readv_chain, | |
19 ngx_unix_send, | |
18 | 20 #if (NGX_HAVE_SENDFILE) |
0 | 21 ngx_solaris_sendfilev_chain, |
22 NGX_IO_SENDFILE | |
23 #else | |
24 ngx_writev_chain, | |
25 0 | |
26 #endif | |
27 }; | |
28 | |
29 | |
88 | 30 ngx_int_t |
31 ngx_os_specific_init(ngx_log_t *log) | |
0 | 32 { |
33 if (sysinfo(SI_SYSNAME, ngx_solaris_sysname, sizeof(ngx_solaris_sysname)) | |
88 | 34 == -1) |
0 | 35 { |
36 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | |
37 "sysinfo(SI_SYSNAME) failed"); | |
38 return NGX_ERROR; | |
39 } | |
40 | |
41 if (sysinfo(SI_RELEASE, ngx_solaris_release, sizeof(ngx_solaris_release)) | |
88 | 42 == -1) |
0 | 43 { |
44 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | |
45 "sysinfo(SI_RELEASE) failed"); | |
46 return NGX_ERROR; | |
47 } | |
48 | |
49 if (sysinfo(SI_VERSION, ngx_solaris_version, sizeof(ngx_solaris_version)) | |
88 | 50 == -1) |
0 | 51 { |
52 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, | |
53 "sysinfo(SI_SYSNAME) failed"); | |
54 return NGX_ERROR; | |
55 } | |
56 | |
2 | 57 |
88 | 58 ngx_os_io = ngx_solaris_io; |
59 | |
340 | 60 return NGX_OK; |
0 | 61 } |
62 | |
63 | |
88 | 64 void |
65 ngx_os_specific_status(ngx_log_t *log) | |
0 | 66 { |
67 | |
80 | 68 ngx_log_error(NGX_LOG_NOTICE, log, 0, "OS: %s %s", |
0 | 69 ngx_solaris_sysname, ngx_solaris_release); |
70 | |
80 | 71 ngx_log_error(NGX_LOG_NOTICE, log, 0, "version: %s", |
0 | 72 ngx_solaris_version); |
73 } |