Re: [PATCH v2 13/14] daemon: use select() instead of poll()
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Jan 16, 2010, 10:44 UTC
- Message-ID
- <201001161144.55263.j6t@kdbg.org>
- In-Reply-To
- <40aa078e1001160114k5ce0414et7cd645724973609b@mail.gmail.com>
On Samstag, 16. Januar 2010, Erik Faye-Lund wrote:
Show 6 quoted lines
> On Sat, Jan 16, 2010 at 9:08 AM, Johannes Sixt <j6t@kdbg.org> wrote: > > Wouldn't it be possible to call getsockopt(), and if it returns ENOTSOCK > > (WSAENOTSOCK), then it is a pipe? > > I read reports that this didn't work in Wine. Not that I care that > much about Wine.
What does it mean that "it does not work"? Is it that it does not return ENOTSOCK, so that we mistake pipes as sockets?
-- Hannes