cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Multiple curls one cookie file.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 9 Apr 2014 23:13:57 +0200 (CEST)

On Wed, 9 Apr 2014, frank ernest wrote:

> If I start multiple curl instances and tell them all to use the same cookie
> file

Use the file for what? Reading from the same file works fine.

> will they trip over each other? Cause race conditions? Or corrupt the file?

If they all write the file, there'll be a race. That may indeed corrupt the
file.

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