| 1113 | } |
| 1114 | |
| 1115 | static bool cbm_posix_group_active(cbm_subprocess_t *process) { |
| 1116 | if (kill(-process->pgid, 0) == 0) { |
| 1117 | return true; |
| 1118 | } |
| 1119 | return errno != ESRCH; /* EPERM/other errors fail closed as still active */ |
| 1120 | } |
| 1121 | |
| 1122 | static void cbm_posix_begin_termination(cbm_subprocess_t *process, uint64_t now) { |
| 1123 | if (process->termination_started) { |
no outgoing calls
no test coverage detected