[PATCH] D22742: Fix `-jobs=<N>` where <N> > 1 and the number of workers is > 1 on macOS.
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 10 15:27:18 PDT 2016
kcc added inline comments.
================
Comment at: lib/Fuzzer/FuzzerUtilDarwin.cpp:90-95
@@ +89,8 @@
+ (void)posix_spawnattr_setsigdefault(&SpawnAttributes, &DefaultSigSet);
+ // Make sure the child process doesn't block SIGCHLD
+ (void)posix_spawnattr_setsigmask(&SpawnAttributes, &OldBlockedSignalsSet);
+ short SpawnFlags = POSIX_SPAWN_SETSIGDEF | POSIX_SPAWN_SETSIGMASK;
+ (void)posix_spawnattr_setflags(&SpawnAttributes, SpawnFlags);
+
+ pid_t Pid;
+ char **Environ = environ; // Read from global
----------------
no preference here.
https://reviews.llvm.org/D22742
More information about the llvm-commits
mailing list