[patch] Drop an unnecessary use of writev
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 16 13:55:45 PST 2015
On Wed, Dec 16, 2015 at 7:27 AM, Rafael EspĂndola
<rafael.espindola at gmail.com> wrote:
> I think the code this patch deletes is based on a misunderstanding of
> what guarantees writev provides. In particular, writev with 1 iovec is
> not "more atomic" than a write.
>
> With the attached test program I get 'a's and 'b's on the same line on
> OS X when using both write and writev.
Just tested and it's the same on FreeBSD. I'm for shipping this.
Thanks,
--
Davide
"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare
More information about the llvm-commits
mailing list