On Tue, 14 Jun 2011 09:11:22 -0300 Lucas De Marchi
<lucas.demar...@profusion.mobi> said:

> On Tue, Jun 14, 2011 at 3:57 AM, Carsten Haitzler <ras...@rasterman.com>
> wrote:
> >> So, the easiest fix (and cleanest in my POV) would be the patch below
> >> (untested);
> >
> > i don't see how this fixes vtoprri's problem. the mkstemp followed by an
> > fopen
> 
> vtorri said:
> "On windows, using open() followed by fopen() does not work."
> 
> The only reason this might happen is because the fd is left open. If
> you close it you can open the file again later.

"reason it MIGHT happen". we don't know though :)

> Vincent, just because of my curiosity, could you test on Windows the
> patch I sent?
> 
> > of that file fails (the fopen does). must be some kind of peculiarity/race
> > etc. in windows. vtorri's soln works well. it doesnt need the closes at all
> > actually as fdopen now will associate the fd with the fstream and close it
> > on flcose i'm happy. with that. i'm putting that into svn unless there is
> > some
> 
> I only suggested another way because this is ugly. You're passing to a
> function the filename *and* the fd. You usually do either one or the
> other.
> 
> But I'm fine with this one too.
> 
> 
> 
> 
> Lucas De Marchi
> 
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to