| 50 | } |
| 51 | |
| 52 | void subprocess_stop(struct hashmap *hashmap, struct subprocess_entry *entry) |
| 53 | { |
| 54 | if (!entry) |
| 55 | return; |
| 56 | |
| 57 | entry->process.clean_on_exit = 0; |
| 58 | kill(entry->process.pid, SIGTERM); |
| 59 | finish_command(&entry->process); |
| 60 | |
| 61 | hashmap_remove(hashmap, &entry->ent, NULL); |
| 62 | } |
| 63 | |
| 64 | static void subprocess_exit_handler(struct child_process *process) |
| 65 | { |
no test coverage detected