Re: Does Linux select() violate POSIX?

From: Bernd Petrovitsch
Date: Sun Jun 19 2011 - 10:42:13 EST

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


> 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 Petrovitsch Email : bernd@xxxxxxxxxxxxxxxxxxx

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at