Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-03-10 17:35:21 +0300
committerIgor Sysoev <igor@sysoev.ru>2008-03-10 17:35:21 +0300
commit001a9cfa37b47f323c4c9197b58b5d92a1dabfe9 (patch)
treec9dd11dbf7e74dffcf524d9828be2133f335bcdb /src/os
parentd48d0d9f422baf87d349814c58dc31761838f908 (diff)
disable rtsig automatic building in post 2.6.18 Linux kernels
Diffstat (limited to 'src/os')
-rw-r--r--src/os/unix/ngx_linux_init.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/os/unix/ngx_linux_init.c b/src/os/unix/ngx_linux_init.c
index cb83cd3e8..277be9537 100644
--- a/src/os/unix/ngx_linux_init.c
+++ b/src/os/unix/ngx_linux_init.c
@@ -11,7 +11,7 @@
u_char ngx_linux_kern_ostype[50];
u_char ngx_linux_kern_osrelease[50];
-int ngx_linux_rtsig_max;
+int ngx_linux_rtsig_max;
static ngx_os_io_t ngx_linux_io = {
@@ -32,9 +32,6 @@ static ngx_os_io_t ngx_linux_io = {
ngx_int_t
ngx_os_specific_init(ngx_log_t *log)
{
- int name[2];
- size_t len;
- ngx_err_t err;
struct utsname u;
if (uname(&u) == -1) {
@@ -48,6 +45,12 @@ ngx_os_specific_init(ngx_log_t *log)
(void) ngx_cpystrn(ngx_linux_kern_osrelease, (u_char *) u.release,
sizeof(ngx_linux_kern_osrelease));
+#if (NGX_HAVE_RTSIG)
+ {
+ int name[2];
+ size_t len;
+ ngx_err_t err;
+
name[0] = CTL_KERN;
name[1] = KERN_RTSIGMAX;
len = sizeof(ngx_linux_rtsig_max);
@@ -65,6 +68,8 @@ ngx_os_specific_init(ngx_log_t *log)
ngx_linux_rtsig_max = 0;
}
+ }
+#endif
ngx_os_io = ngx_linux_io;
@@ -78,6 +83,8 @@ ngx_os_specific_status(ngx_log_t *log)
ngx_log_error(NGX_LOG_NOTICE, log, 0, "OS: %s %s",
ngx_linux_kern_ostype, ngx_linux_kern_osrelease);
+#if (NGX_HAVE_RTSIG)
ngx_log_error(NGX_LOG_NOTICE, log, 0, "sysctl(KERN_RTSIGMAX): %d",
ngx_linux_rtsig_max);
+#endif
}