lkml.org 
[lkml]   [2001]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: /proc/sys/net/unix
Date
James Stevenson writes:
> should there be 2 files in that diretory with the same name ?

No.

> mistral@sx:/proc/sys/net/unix$ ls -la
> total 0
> dr-xr-xr-x 2 root root 0 Jan 5 21:09 ./
> dr-xr-xr-x 8 root root 0 Jan 5 21:09 ../
> -rw------- 1 root root 0 Jan 5 21:09 max_dgram_qlen
> -rw------- 1 root root 0 Jan 5 21:09 max_dgram_qlen
> mistral@sx:/proc/sys/net/unix$
>
> thats under 2.4.0

Both net/sysctl_net.c and net/unix/sysctl_net_unix.c register the
unix_table[] structure which contains the "max_dgram_qlen" file.
It should only be registered once.

Since Unix sockets can be modular, I'm guessing that the one in
net/sysctl_net.c is wrong. The easy way to get rid of it is to
remove the code between #ifdef CONFIG_UNIX and #endif in that file.

However, I leave it up to DaveM to supply the official patch since
this may not be his preferred method of fixing the problem.
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.linux.org.uk --- ---
| | | | http://www.arm.linux.org.uk/personal/aboutme.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.040 / U:1.004 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site