[ http://nagoya.apache.org/jira/browse/XERCESC-1018?page=history ]

Alberto Massari updated XERCESC-1018:
-------------------------------------

    Priority: Major

> Linux buffer writer doesn't appear to explicitly flush
> ------------------------------------------------------
>
>          Key: XERCESC-1018
>          URL: http://nagoya.apache.org/jira/browse/XERCESC-1018
>      Project: Xerces-C++
>         Type: Bug
>   Components: Utilities
>     Versions: 2.3.0
>  Environment: Operating System: Linux
> Platform: PC
>     Reporter: Steve Adelson
>     Assignee: Xerces-C Developers Mailing List

>
> We are using Xerces to read and write the same file from disk.  Rapid accesses
> appear to cause crashes in the reader, leading us to suspect that the file is
> not completely written to disk before we read it again.
> I have added "fsync(fileno((FILE*)theFile))" before the return calls in
> util/Platforms/Linux/LinuxPlatformUtils.cpp/XMLPlatformUtils::writeBufferToFile(),
> which seems to solve the problem.  If you agree that this is a general and
> acceptable solution, you may wish to add it to the distribution for all platforms.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to