mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-31 17:52:27 +00:00
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:
parent
0863427b3a
commit
bcf268adf8
2 changed files with 19 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue