<br><br><div class="gmail_quote">On Tue, Apr 15, 2008 at 11:20 PM, &quot;Martin v. Löwis&quot; &lt;<a href="mailto:martin@v.loewis.de">martin@v.loewis.de</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">&gt; &nbsp; &nbsp; &gt; the flush fails but the programs fails to recognize it? i.e. the<br>
&gt; &nbsp; &nbsp; program<br>
&gt; &nbsp; &nbsp; &gt; assumes the data is written to disk but it isn&#39;t?<br>
&gt;<br>
&gt; &nbsp; &nbsp; Why would the program fail to recognize it? It should just look at the<br>
&gt; &nbsp; &nbsp; result being returned.<br>
&gt;<br>
&gt;<br>
&gt; sorry no.<br>
<br>
</div>Sorry no what?<br>
</blockquote><div><br>mmap.flush returns different values for windows/unix like platforms in case it succeeds.<br>mmap.flush raises an exception on unix like platforms for errors. <br>mmap.flush returns 0 on windows for errors. This is the value which is returned on unix like platforms for a successful call.<br>
The documentation for mmap.flush does not even mention a return value.<br><br>so, still: sorry no, the application should not just look at the result being returned. The mmap.flush method should be fixed.<br><br><br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Regards,<br>
<font color="#888888">Martin<br>
</font></blockquote></div><br>