| 1826 | } |
| 1827 | |
| 1828 | static void cbm_posix_force_tree(cbm_subprocess_t *process, uint64_t now) { |
| 1829 | if (process->force_sent) { |
| 1830 | return; |
| 1831 | } |
| 1832 | if (process->force_started_ms == 0) { |
| 1833 | process->force_started_ms = now; |
| 1834 | } |
| 1835 | if (kill(-process->pgid, SIGKILL) == 0) { |
| 1836 | process->result.forced = true; |
| 1837 | process->force_sent = true; |
| 1838 | } else if (errno == ESRCH) { |
| 1839 | process->force_sent = true; |
| 1840 | } else { |
| 1841 | process->containment_failed = true; |
| 1842 | } |
| 1843 | } |
| 1844 | |
| 1845 | static void cbm_posix_capture_root(cbm_subprocess_t *process, int status) { |
| 1846 | process->root_reaped = true; |
no outgoing calls
no test coverage detected