summaryrefslogtreecommitdiff
path: root/src/worker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c
index 9f14dfa..adb3083 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -4,6 +4,8 @@
#include "port.h"
+#include "pthread.h"
+
#include <glib.h>
#include <stdio.h>
@@ -141,9 +143,9 @@ void worker_terminate( worker_t *worker )
direct_glib_execution_worker_data_t *wed = (direct_glib_execution_worker_data_t *)worker->execution_data;
#ifndef _WIN32
- kill( wed->pid, SIGTERM );
+ (void)kill( wed->pid, SIGTERM );
#else
-#error TODO kill on Windows
+ (void)TerminateProcess( wed->pid, 0 );
#endif
worker->state = WORKER_STATE_STOPPED;
free( worker->execution_data );