Warning about sysctl
Igor Sysoev
is at rambler-co.ru
Tue Sep 5 23:26:50 MSD 2006
On Tue, 5 Sep 2006, Aleksandar Lazic wrote:
> today i have got this warning :-/
>
> ---
> objs/src/os/unix/ngx_linux_init.o: In function `ngx_os_specific_init':
>
> src/os/unix/ngx_linux_init.c:63: warning: the `sysctl' syscall has been
> removed from 2.6.18+ kernels, direct access to `/proc/sys' should be
> used instead.
>
> make[1]: Leaving directory `nginx-0.4.0'
> ---
>
> But i have:
>
> ---
> uname -a
>
> Linux home1 2.6.17-2-686 #1 SMP Fri Aug 11 20:25:51 UTC 2006 i686
> GNU/Linux
> ---
>
> It's a debian unstable ;-)
I know this issue and some sysctl's were converted to procfs in 0.3.58.
However, on pre-2.6-someting kernels nginx uses sysctl() to get
/proc/sys/kernel/rtsig-max and /proc/sys/kernel/rtsig-nr values
in recovery process of rtsig queue overflow. I need to investigate
whether repeated pread() syscall on /proc/sys/kernel/rtsig-nr file
could replace sysctl().
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list