mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
waitpid translated the stop and termination signal of a child from the Linux numbering to the FreeBSD one on every non-Windows host. Darwin already numbers its signals like FreeBSD, so on macOS the translation broke them: a child stopped by SIGSTOP (17) was reported as stopped by 20, SIGBUS (10) as 30, SIGSYS (12) as 31, and a child killed by SIGUSR1 (30) made waitpid report a missing guest equivalent. macOS now passes the host signal through. The spawn test finds its own executable with _NSGetExecutablePath on macOS instead of /proc/self/exe, and also checks a child killed by SIGUSR1, whose number differs between Linux and FreeBSD and which macOS used to reject.