Go to file
Stan Hu c7308592fb
hostip.c: Move macOS-specific calls into global init call
https://github.com/curl/curl/pull/7121 introduced a macOS system call
to `SCDynamicStoreCopyProxies`, which is invoked every time an IP
address needs to be resolved.

However, this system call is not thread-safe, and macOS will kill the
process if the system call is run first in a fork. To make it possible
for the parent process to call this once and prevent the crash, only
invoke this system call in the global initialization routine.

In addition, this change is beneficial because it:

1. Avoids extra macOS system calls for every IP lookup.
2. Consolidates macOS-specific initialization in a separate file.

Fixes #11252
Closes #11254
2023-07-09 19:16:58 +02:00
.circleci CI: enable parallel make in more builds 2023-06-24 14:40:39 -07:00
.github CI: enable verbose test output on pytest 2023-07-07 13:47:34 -07:00
.lift
.reuse
CMake
docs docs: use a space after RFC when spelling out RFC numbers 2023-07-09 19:13:33 +02:00
include curl.h: include <sys/select.h> for vxworks 2023-06-25 10:42:47 +02:00
lib hostip.c: Move macOS-specific calls into global init call 2023-07-09 19:16:58 +02:00
LICENSES
m4
packages
plan9
projects
scripts checksrc: modernise perl file open 2023-06-22 11:03:02 +02:00
src tool_writeout_json: fix encoding of control characters 2023-07-09 18:57:01 +02:00
tests transfer: clear credentials when redirecting to absolute URL 2023-07-09 11:12:13 +02:00
winbuild
.azure-pipelines.yml
.cirrus.yml CI: enable parallel make in more builds 2023-06-24 14:40:39 -07:00
.dcignore
.dir-locals.el
.git-blame-ignore-revs
.gitattributes
.gitignore
.mailmap
acinclude.m4
appveyor.yml CI: make Appveyor job names unique 2023-06-28 01:07:21 -07:00
buildconf
buildconf.bat
CHANGES
CMakeLists.txt cmake: stop CMake from quietly ignoring missing Brotli 2023-06-23 10:40:05 +02:00
configure.ac configure: the --without forms of the options are also gone 2023-06-24 23:18:54 +02:00
COPYING
curl-config.in
GIT-INFO
libcurl.pc.in
MacOSX-Framework
Makefile.am
Makefile.dist
maketgz
README
README.md
RELEASE-NOTES RELEASE-NOTES: synced 2023-07-09 18:45:34 +02:00
SECURITY.md

curl logo

Curl is a command-line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl.3 man page to learn how.

You can find answers to the most frequent questions we get in the FAQ document.

Study the COPYING file for distribution terms.

Contact

If you have problems, questions, ideas or suggestions, please contact us by posting to a suitable mailing list.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Git

To download the latest source from the Git server, do this:

git clone https://github.com/curl/curl.git

(you will get a directory named curl created, filled with the source code)

Security problems

Report suspected security problems via our HackerOne page and not in public.

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers! 🙏 Become a backer.

Sponsors

Support this project by becoming a sponsor.