[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1308494508.13047.4.camel@thorin>
Date: Sun, 19 Jun 2011 16:41:48 +0200
From: Bernd Petrovitsch <bernd@...rovitsch.priv.at>
To: Nemo Publius <nemo@...f-evident.org>
Cc: Alan Cox <alan@...rguk.ukuu.org.uk>,
Eric Dumazet <eric.dumazet@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: Does Linux select() violate POSIX?
On Sam, 2011-06-18 at 11:51 -0700, Nemo Publius wrote:
[...]
> With any "test something, then assume result of test" sequence,
> obviously I can have race conditions with multiple processes or
> threads. I mean, had I asked, "I call write() and then lseek() to
ACK.
> where I started and then read() on a file; am I guaranteed to read
> back what I wrote?" And you said no, because some other process could
> write in the meantime... I would say that is technically true but not
> at all what I was asking.
Then you should reformulate your question because the answer is
technically correct.
If the (technically correct!) answer does not help you, you asked the
wrong question.
It's as simple as that.
Kind regards,
Bernd
--
Bernd Petrovitsch Email : bernd@...rovitsch.priv.at
LUGA : http://www.luga.at
--
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