mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
When macOS refuses to signal a process group (EPERM, which it returns for a group of zombies), the smoke test checked with `ps` whether any member was still alive. A Mac that will not let the build run `ps` - "Operation not permitted", as here, where EVERYTHING's node suites run - failed the check itself, and with it a correct app: macAppPackaging.test.cjs, every EVERYTHING run on this machine. On macOS it asks the kernel through libproc now (proc_listpids for the group, proc_pidinfo for each member: a zombie's info cannot be read, a live one's status is not SZOMB), with no process started. Elsewhere it uses ps exactly as before. tests/mac-smoke-app.py: the ps cases run as the non-macOS path; on macOS an EPERM asks libproc and never ps; and a real group - a live child, then a zombie leader alone - is told apart. macAppPackaging.test.cjs passes, three runs in a row. Thanks to xet7 !