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        [EMAIL PROTECTED]      --- ---
  | | | | 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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to