> > > > write(1,buffer,width*height*2); fdatasync(1);
> > What would you suggest to use ? fsync seems worse.
> Well, not really... From sys_fdatasync:
> /* this needs further work, at the moment it is identical to fsync() */
Yeah. Know that. But documentation-wise ...
> How about just mmap()ing enough of the file to hold a few frames and
> then munmap() it when those frames are written to the buffer?
> Or are buffers not flushed on munmap?
Interesting idea. Don't know. I do actually see no reason for them to be
flushed, but ...
> Otherwise the only solution I can think of is periodicly calling
> fdatasync() from another thread or process.
Hmm - not sure this would help ...
Steven replied, and told me, fdatasync and fsync should be improved much in
2.3 and the upcoming 2.4. I'll wait for that.
CU, Andy
--
= Andreas Beck | Email : <[EMAIL PROTECTED]> =