Don't modify argument block on MacOS Arm64

Some dynamic library had access to this information somehow and was
crashing when it didn't have the expected structure.
This commit is contained in:
Justine Tunney 2023-11-12 05:48:18 -08:00
parent 0863427b3a
commit bcf268adf8
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 19 additions and 18 deletions

View file

@ -73,9 +73,10 @@ void OnSigchld(int sig, siginfo_t *si, void *arg) {
EXPECT_EQ(42, WEXITSTATUS(ws));
EXPECT_EQ(SIGCHLD, sig);
EXPECT_EQ(SIGCHLD, si->si_signo);
EXPECT_EQ(CLD_EXITED, si->si_code);
EXPECT_EQ(sigchld_pid, si->si_pid);
EXPECT_EQ(getuid(), si->si_uid);
// these fields aren't very portable
// EXPECT_EQ(CLD_EXITED, si->si_code);
// EXPECT_EQ(sigchld_pid, si->si_pid);
// EXPECT_EQ(getuid(), si->si_uid);
EXPECT_NE(NULL, ctx);
sigchld_got_signal = true;
}