Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_solaris_init.c @ 92:45945fa8b8ba NGINX_0_2_0
nginx 0.2.0
*) The pid-file names used during online upgrade was changed and now is
not required a manual rename operation. The old master process adds
the ".oldbin" suffix to its pid-file and executes a new binary file.
The new master process creates usual pid-file without the ".newbin"
suffix. If the master process exits, then old master process renames
back its pid-file with the ".oldbin" suffix to the pid-file without
suffix.
*) Change: the "worker_connections" directive, new name of the
"connections" directive; now the directive specifies maximum number
of connections, but not maximum socket descriptor number.
*) Feature: SSL supports the session cache inside one worker process.
*) Feature: the "satisfy_any" directive.
*) Change: the ngx_http_access_module and ngx_http_auth_basic_module do
not run for subrequests.
*) Feature: the "worker_rlimit_nofile" and "worker_rlimit_sigpending"
directives.
*) Bugfix: if all backend using in load-balancing failed after one
error, then nginx did not try do connect to them during 60 seconds.
*) Bugfix: in IMAP/POP3 command argument parsing.
Thanks to Rob Mueller.
*) Bugfix: errors while using SSL in IMAP/POP3 proxy.
*) Bugfix: errors while using SSI and gzipping.
*) Bugfix: the "Expires" and "Cache-Control" header lines were omitted
from the 304 responses.
Thanks to Alexandr Kukushkin.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 23 Sep 2005 00:00:00 +0400 |
parents | e916a291e9aa |
children | 10cc350ed8a1 |
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 | |
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 } |