about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-03-01T01·07+0100
committerGitHub <noreply@github.com>2019-03-01T01·07+0100
commitad6dbecc1d3fd756e794fcf5876cc3482ac70e94 (patch)
tree2c7b32dd7bb15dd5d78831ed219ddc5c2c829bac
parentebd4d50e6e32d140be2bca0f1b175618c41f2478 (diff)
parent8ac1130cc2f0d717fa49adf18465ecf5613d295c (diff)
Merge pull request #2674 from LnL7/daemon-disable-fork-safety
nix-daemon: add variable to disable fork safety
-rw-r--r--misc/launchd/org.nixos.nix-daemon.plist.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/launchd/org.nixos.nix-daemon.plist.in b/misc/launchd/org.nixos.nix-daemon.plist.in
index 549619a57d56..92ed12fa5090 100644
--- a/misc/launchd/org.nixos.nix-daemon.plist.in
+++ b/misc/launchd/org.nixos.nix-daemon.plist.in
@@ -2,6 +2,11 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
   <dict>
+    <key>EnvironmentVariables</key>
+    <dict>
+      <key>OBJC_DISABLE_INITIALIZE_FORK_SAFETY</key>
+      <string>YES</string>
+    </dict>
     <key>Label</key>
     <string>org.nixos.nix-daemon</string>
     <key>KeepAlive</key>