cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: reading a log file while open

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Apr 2016 15:06:05 +0200 (CEST)

On Fri, 22 Apr 2016, Jeremy Nicoll wrote:

> so I'd suggest that maybe the problem is in curl not opening output files in
> 'SHARED'

Oh, and it isn't already shared because we use the standard C fopen() to
create the file while it turns out that in order to have the file readable
while writing to it we need to use "_fsopen()" [1]

It makes you wonder if there's any downside to just always create files
"shared"?

[1] = https://msdn.microsoft.com/en-us/library/aa246901(v=vs.60).aspx

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ:        https://curl.haxx.se/docs/faq.html
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-22