Mercurial > hg > nginx-vendor-current
comparison src/os/unix/ngx_linux_init.c @ 88:e916a291e9aa NGINX_0_1_44
nginx 0.1.44
*) Feature: the IMAP/POP3 proxy supports SSL.
*) Feature: the "proxy_timeout" directive of the ngx_imap_proxy_module.
*) Feature: the "userid_mark" directive.
*) Feature: the $remote_user variable value is determined independently
of authorization use.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 06 Sep 2005 00:00:00 +0400 |
parents | 6ae11d59d10e |
children | dd6c66b5b0e2 |
comparison
equal
deleted
inserted
replaced
87:5b7ec80c3c40 | 88:e916a291e9aa |
---|---|
12 char ngx_linux_kern_osrelease[20]; | 12 char ngx_linux_kern_osrelease[20]; |
13 | 13 |
14 int ngx_linux_rtsig_max; | 14 int ngx_linux_rtsig_max; |
15 | 15 |
16 | 16 |
17 ngx_os_io_t ngx_os_io = { | 17 static ngx_os_io_t ngx_linux_io = { |
18 ngx_unix_recv, | 18 ngx_unix_recv, |
19 ngx_readv_chain, | 19 ngx_readv_chain, |
20 ngx_unix_send, | 20 ngx_unix_send, |
21 #if (NGX_HAVE_SENDFILE) | 21 #if (NGX_HAVE_SENDFILE) |
22 ngx_linux_sendfile_chain, | 22 ngx_linux_sendfile_chain, |
27 #endif | 27 #endif |
28 }; | 28 }; |
29 | 29 |
30 | 30 |
31 ngx_int_t | 31 ngx_int_t |
32 ngx_os_init(ngx_log_t *log) | 32 ngx_os_specific_init(ngx_log_t *log) |
33 { | 33 { |
34 int name[2]; | 34 int name[2]; |
35 size_t len; | 35 size_t len; |
36 ngx_err_t err; | 36 ngx_err_t err; |
37 | 37 |
72 | 72 |
73 ngx_linux_rtsig_max = 0; | 73 ngx_linux_rtsig_max = 0; |
74 } | 74 } |
75 | 75 |
76 | 76 |
77 return ngx_posix_init(log); | 77 ngx_os_io = ngx_linux_io; |
78 | |
79 return NGX_OK; | |
78 } | 80 } |
79 | 81 |
80 | 82 |
81 void | 83 void |
82 ngx_os_status(ngx_log_t *log) | 84 ngx_os_specific_status(ngx_log_t *log) |
83 { | 85 { |
84 ngx_log_error(NGX_LOG_NOTICE, log, 0, "OS: %s %s", | 86 ngx_log_error(NGX_LOG_NOTICE, log, 0, "OS: %s %s", |
85 ngx_linux_kern_ostype, ngx_linux_kern_osrelease); | 87 ngx_linux_kern_ostype, ngx_linux_kern_osrelease); |
86 | 88 |
87 ngx_log_error(NGX_LOG_NOTICE, log, 0, "sysctl(KERN_RTSIGMAX): %d", | 89 ngx_log_error(NGX_LOG_NOTICE, log, 0, "sysctl(KERN_RTSIGMAX): %d", |
88 ngx_linux_rtsig_max); | 90 ngx_linux_rtsig_max); |
89 | |
90 | |
91 ngx_posix_status(log); | |
92 } | 91 } |