mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: mistral@stev.org (James Stevenson)
Cc: linux-kernel@vger.kernel.org
Subject: Re: /proc/sys/net/unix
Date: Fri, 5 Jan 2001 22:16:54 +0000 (GMT)	[thread overview]
Message-ID: <200101052216.f05MGtJ17781@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.21.0101052107430.11582-100000@linux.home> from "James Stevenson" at Jan 05, 2001 09:09:24 PM

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/

      reply	other threads:[~2001-01-05 22:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-05 21:09 /proc/sys/net/unix James Stevenson
2001-01-05 22:16 ` Russell King [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200101052216.f05MGtJ17781@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mistral@stev.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®