| 1260 | } |
| 1261 | |
| 1262 | static void cbm_posix_force_tree(cbm_subprocess_t *process, uint64_t now) { |
| 1263 | if (process->force_sent) { |
| 1264 | return; |
| 1265 | } |
| 1266 | if (process->force_started_ms == 0) { |
| 1267 | process->force_started_ms = now; |
| 1268 | } |
| 1269 | if (kill(-process->pgid, SIGKILL) == 0) { |
| 1270 | process->result.forced = true; |
| 1271 | process->force_sent = true; |
| 1272 | } else if (errno == ESRCH) { |
| 1273 | process->force_sent = true; |
| 1274 | } else { |
| 1275 | process->containment_failed = true; |
| 1276 | } |
| 1277 | } |
| 1278 | |
| 1279 | static void cbm_posix_capture_root(cbm_subprocess_t *process, int status) { |
| 1280 | process->root_reaped = true; |
no outgoing calls
no test coverage detected