lix/misc
Nikodem Rabuliński f894cce79b
Always initialize curl in parent process on darwin
Because of an objc quirk[1], calling curl_global_init for the first time
after fork() will always result in a crash.
Up until now the solution has been to set
OBJC_DISABLE_INITIALIZE_FORK_SAFETY for every nix process to ignore
that error.
This is less than ideal because we were setting it in package.nix,
which meant that running nix tests locally would fail because
that variable was not set.
Instead of working around that error we address it at the core -
by calling curl_global_init inside initLibStore, which should mean
curl will already have been initialized by the time we try to do so in
a forked process.

[1] 01edf1705f/runtime/objc-initialize.mm (L614-L636)

Change-Id: Icf26010a8be655127cc130efb9c77b603a6660d0
2024-05-07 20:43:17 +02:00
..
bash meson: install shell files 2024-03-29 20:10:33 +00:00
fish meson: install shell files 2024-03-29 20:10:33 +00:00
launchd Always initialize curl in parent process on darwin 2024-05-07 20:43:17 +02:00
systemd meson: install systemd files 2024-03-29 20:10:33 +00:00
systemv Add pre-commit checks 2024-03-29 22:57:40 -07:00
zsh meson: install shell files 2024-03-29 20:10:33 +00:00
clangbuildanalyzer.nix Format Nix code with nixfmt 2024-04-08 13:00:00 -07:00
meson.build meson: install systemd files 2024-03-29 20:10:33 +00:00