| 793 | } |
| 794 | |
| 795 | static void cbm_subprocess_delete_log(cbm_subprocess_t *process) { |
| 796 | if (!process->log_file || !process->delete_log_on_exit) { |
| 797 | return; |
| 798 | } |
| 799 | #ifdef _WIN32 |
| 800 | wchar_t *path = cbm_path_to_wide(process->log_file); |
| 801 | if (path) { |
| 802 | (void)DeleteFileW(path); |
| 803 | free(path); |
| 804 | } |
| 805 | #else |
| 806 | (void)unlink(process->log_file); |
| 807 | #endif |
| 808 | } |
| 809 | |
| 810 | static bool cbm_subprocess_begin_terminal_transition(cbm_subprocess_t *process) { |
| 811 | int lifecycle = atomic_load_explicit(&process->lifecycle, memory_order_acquire); |
no test coverage detected