comparison src/os/unix/ngx_linux_init.c @ 452:23fb87bddda1 release-0.1.1

nginx-0.1.1-RELEASE import *) Feature: the gzip_types directive. *) Feature: the tcp_nodelay directive. *) Feature: the send_lowat directive is working not only on OSes that support kqueue NOTE_LOWAT, but also on OSes that support SO_SNDLOWAT. *) Feature: the setproctitle() emulation for Linux and Solaris. *) Bugfix: the "Location" header rewrite bug fixed while the proxying. *) Bugfix: the ngx_http_chunked_module module may get caught in an endless loop. *) Bugfix: the /dev/poll module bugs fixed. *) Bugfix: the responses were corrupted when the temporary files were used while the proxying. *) Bugfix: the unescaped requests were passed to the backend. *) Bugfix: while the build configuration on Linux 2.4 the --with-poll_module parameter was required.
author Igor Sysoev <igor@sysoev.ru>
date Mon, 11 Oct 2004 15:07:03 +0000
parents 551102312e19
children bbd6b0b4a2b1
comparison
equal deleted inserted replaced
451:f40362e47689 452:23fb87bddda1
28 }; 28 };
29 29
30 30
31 ngx_int_t ngx_os_init(ngx_log_t *log) 31 ngx_int_t ngx_os_init(ngx_log_t *log)
32 { 32 {
33 int name[2], len; 33 int name[2];
34 size_t len;
34 35
35 name[0] = CTL_KERN; 36 name[0] = CTL_KERN;
36 name[1] = KERN_OSTYPE; 37 name[1] = KERN_OSTYPE;
37 len = sizeof(ngx_linux_kern_ostype); 38 len = sizeof(ngx_linux_kern_ostype);
38 if (sysctl(name, sizeof(name), ngx_linux_kern_ostype, &len, NULL, 0) 39 if (sysctl(name, sizeof(name), ngx_linux_kern_ostype, &len, NULL, 0)
61 "sysctl(KERN_RTSIGMAX) failed"); 62 "sysctl(KERN_RTSIGMAX) failed");
62 ngx_linux_rtsig_max = 0; 63 ngx_linux_rtsig_max = 0;
63 64
64 } 65 }
65 66
67 ngx_init_setproctitle(log);
68
66 69
67 return ngx_posix_init(log); 70 return ngx_posix_init(log);
68 } 71 }
69 72
70 73
74 ngx_linux_kern_ostype, ngx_linux_kern_osrelease); 77 ngx_linux_kern_ostype, ngx_linux_kern_osrelease);
75 78
76 ngx_log_error(NGX_LOG_INFO, log, 0, "sysctl(KERN_RTSIGMAX): %d", 79 ngx_log_error(NGX_LOG_INFO, log, 0, "sysctl(KERN_RTSIGMAX): %d",
77 ngx_linux_rtsig_max); 80 ngx_linux_rtsig_max);
78 81
82
79 ngx_posix_status(log); 83 ngx_posix_status(log);
80 } 84 }