write()s and pwrite()s from multiple threads in OSX

Marc Lehmann schmorp at schmorp.de
Wed Nov 24 23:05:09 CET 2010


On Wed, Nov 24, 2010 at 03:04:59PM +0100, Jorge Chamorro <jorge at jorgechamorro.com> wrote:
> On 24/11/2010, at 13:52, Jorge wrote:
> > On 24/11/2010, at 13:24, Marc Lehmann wrote:
> >> On Wed, Nov 24, 2010 at 10:46:27AM +0100, Jorge <jorge at jorgechamorro.com> wrote:
> >>> You're right, I know, there's no problem with O_APPEND, nevertheless a fix for write()s to non-O_APPEND fds would be a Good Thing™ for Mac users, don't you think so ?
> >> 
> >> yes, thats why apple would need to get involved, as they are the only ones
> >> who can fix it.
> >> 
> >> another thing that comes to mind is read protection - if write has these
> >> issues, I bet read is similarly broken.
> > 
> > No, it isn't, as far as I can see.
> 
> Damn it, you're right, yes it's broken too : https://gist.github.com/713677

I guess setting the number of I/O threads to 1 might be a good idea on OS X,
after all *g*

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list