comparison src/event/modules/ngx_rtsig_module.c @ 42:41ccba1aba45 NGINX_0_1_21

nginx 0.1.21 *) Bugfix: the ngx_http_stub_status_module showed incorrect statistics if "rtsig" method was used or if several worker process ran on SMP. *) Bugfix: nginx could not be built by the icc compiler on Linux or if the zlib-1.2.x library was building from sources. *) Bugfix: nginx could not be built on NetBSD 2.0.
author Igor Sysoev <http://sysoev.ru>
date Tue, 22 Feb 2005 00:00:00 +0300
parents 6f8b0dc0f8dd
children 6cfc63e68377
comparison
equal deleted inserted replaced
41:4d8e7a81b3a0 42:41ccba1aba45
699 */ 699 */
700 700
701 name[0] = CTL_KERN; 701 name[0] = CTL_KERN;
702 name[1] = KERN_RTSIGMAX; 702 name[1] = KERN_RTSIGMAX;
703 len = sizeof(rtsig_max); 703 len = sizeof(rtsig_max);
704 if (sysctl(name, sizeof(name), &rtsig_max, &len, NULL, 0) == -1) 704
705 { 705 if (sysctl(name, 2, &rtsig_max, &len, NULL, 0) == -1) {
706 ngx_log_error(NGX_LOG_ALERT, cycle->log, errno, 706 ngx_log_error(NGX_LOG_ALERT, cycle->log, errno,
707 "sysctl(KERN_RTSIGMAX) failed"); 707 "sysctl(KERN_RTSIGMAX) failed");
708 return NGX_ERROR; 708 return NGX_ERROR;
709 } 709 }
710 710
711 name[0] = CTL_KERN; 711 /* name[0] = CTL_KERN; */
712 name[1] = KERN_RTSIGNR; 712 name[1] = KERN_RTSIGNR;
713 len = sizeof(rtsig_nr); 713 len = sizeof(rtsig_nr);
714 if (sysctl(name, sizeof(name), &rtsig_nr, &len, NULL, 0) == -1) 714
715 { 715 if (sysctl(name, 2, &rtsig_nr, &len, NULL, 0) == -1) {
716 ngx_log_error(NGX_LOG_ALERT, cycle->log, errno, 716 ngx_log_error(NGX_LOG_ALERT, cycle->log, errno,
717 "sysctl(KERN_RTSIGNR) failed"); 717 "sysctl(KERN_RTSIGNR) failed");
718 return NGX_ERROR; 718 return NGX_ERROR;
719 } 719 }
720 720