Web Servers General Talk - Re: File handling in apache - HELP!!!!

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > September 2004 > Re: File handling in apache - HELP!!!!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: File handling in apache - HELP!!!!
marsou

2004-09-28, 4:13 am

Thank you for your reply,

> Does Windows even guarantee that _open ... and _dup will return the lowest >available "handle" ... value? I don't see any such
> guarantee in the Windows documentation....


I really don't need the value to be the lowest. The only thing that I
need is that I could use the descriptor returned to me by fopen to
write into that file. And apparently I couldn't do that inside the
apache sources. When I tried it returned me -1 with errno = EBADF

>
> - Handle 5 was closed prior to the fopen call in Apache. You say
> you didn't close it, but are you completely sure that nothing else
> did?


I can say that nothing closed my file because after the apache codes
in my logger function I could normally write to file using the same
handle


regarding the 2 different librarys issue - I then tried to use only
_open(you are right I just accidentally didn't copy the underscore)
but the result is the same


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com