[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f2b55d220703080840xb0a1da0w41051a7c4a7ac4e3@mail.gmail.com>
Date: Thu, 8 Mar 2007 08:40:12 -0800
From: "Michael K. Edwards" <medwards.linux@...il.com>
To: "Davide Libenzi" <davidel@...ilserver.org>
Cc: "Linus Torvalds" <torvalds@...ux-foundation.org>,
"David M. Lloyd" <dmlloyd@...rg.com>,
"Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>,
"Andrew Morton" <akpm@...ux-foundation.org>
Subject: Re: [patch 2/5] signalfd v2 - signalfd core ...
On 3/8/07, Davide Libenzi <davidel@...ilserver.org> wrote:
> The reason for the special function, was not to provide a non-blocking
> behaviour with zero timeout (that just a side effect), but to read the
> siginfo. I was all about using read(2) (and v1 used it), but when you have
> to transfer complex structures over it, it becomes hell. How do you
> cleanly compat over a f_op->read callback for example?
Make it a netlink socket and fetch your structures using recvmsg().
siginfo_t belongs in ancillary data.
The UNIX philosophy is "everything's a file". The Berkeley philosophy
is "everything's a socket, except for files, which are feeble
mini-sockets". I'd go with the Berkeley crowd here.
Cheers,
- Michael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists