summaryrefslogtreecommitdiff
path: root/process-win.c
diff options
context:
space:
mode:
Diffstat (limited to 'process-win.c')
-rw-r--r--process-win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/process-win.c b/process-win.c
index b24dd68..d36302b 100644
--- a/process-win.c
+++ b/process-win.c
@@ -79,6 +79,7 @@ long long process_read(Process *process, char *data, size_t size) {
void process_kill(Process *process) {
TerminateProcess(process->process_info.hProcess, 1);
+ TerminateThread(process->process_info.hThread, 1);
CloseHandle(process->pipe_read);
CloseHandle(process->pipe_write);
CloseHandle(process->process_info.hProcess);
@@ -107,4 +108,4 @@ int process_check_status(Process *process, char *message, size_t message_size) {
process_kill(process);
return -1;
}
-} \ No newline at end of file
+}