A bug in write() / pwrite() ?
A bug in write() / pwrite() ?
- Subject: A bug in write() / pwrite() ?
- From: Jorge Chamorro <email@hidden>
- Date: Thu, 18 Nov 2010 12:41:40 +0100
Hi,
When writing to a file -fast enough- from a bunch of threads, I get holes filled with zeros in the output. It's like if the filepointer were being updated properly, but the write()s had wrote nothing.
I've got a test case here : http://gist.github.com/703744
Examine the output file and see if you can find any strings of zeroes in it.
Is this a race bug in the write() syscall, or is it me missing something ?
Thanks,
--
Jorge. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden