linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Andy Lutomirski <luto@amacapital.net>
Cc: Andy Lutomirski <luto@kernel.org>,
	rao.shoaib@oracle.com, Christoph Hellwig <hch@lst.de>,
	Paolo Abeni <pabeni@redhat.com>,
	jbi.octave@gmail.com, Linux API <linux-api@vger.kernel.org>
Subject: Re: [RFC net-next af_unix v1 0/1] Allow delivery of SIGURG on AF_UNIX streams socket
Date: Mon, 7 Dec 2020 18:51:50 +0000	[thread overview]
Message-ID: <20201207185150.GA7338@casper.infradead.org> (raw)
In-Reply-To: <8A94EE38-C4F4-4EBE-9737-D331AD34274A@amacapital.net>

On Mon, Dec 07, 2020 at 09:00:12AM -0800, Andy Lutomirski wrote:
> >> I'm also a bit nervous that there might be some program out there that
> >> expects SIGIO but not SIGURG on unix sockets, and you're breaking
> >> them.
> > 
> > The only incompatible scenario I've been able to think of is an
> > application which has both TCP and Unix sockets will suddenly get its
> > SIGURG handler called for Unix sockets when it's only expecting to get
> > it called for TCP sockets.  That feels like a very unlikely scenario.
> 
> So maybe this is okay. It does seem like a hack, but maybe it’s a hack that’s not too bad to support in the kernel.

I see it as extending a (somewhat bogus) TCP socket API to Unix sockets.
The mechanism is badly named.  If it were called MSG_URG instead of
MSG_OOB, I think it'd be a lot less objectionable.  Apparently the
sockets people were enamoured with the idea of having multiple streams
of data inside a single socket, which is madness.

I'd really like a way to generate SIGURG on pipes too, but that's harder
to wire up.

      reply	other threads:[~2020-12-07 18:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-29  2:52 [RFC net-next af_unix v1 0/1] Allow delivery of SIGURG on AF_UNIX streams socket rao.shoaib
2020-11-29  2:52 ` [RFC net-next af_unix v1 1/1] af_unix: " rao.shoaib
2020-11-29  4:02 ` [RFC net-next af_unix v1 0/1] " Andy Lutomirski
2020-11-30  6:24   ` Rao Shoaib
2020-12-07 16:35   ` Matthew Wilcox
2020-12-07 17:00     ` Andy Lutomirski
2020-12-07 18:51       ` Matthew Wilcox [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=20201207185150.GA7338@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=hch@lst.de \
    --cc=jbi.octave@gmail.com \
    --cc=linux-api@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=luto@kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rao.shoaib@oracle.com \
    /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;
as well as URLs for NNTP newsgroup(s).