Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2010-10-11 20:25:20 +0000
committereutarass2010-10-11 20:25:20 +0000
commit584b23f3e4958625a282a34a160ad8ae22608ee9 (patch)
tree3caf99889a65f046a949334dfac7c7be989c818b
parent666a45434b7cf889aef0eb62aaec6ac4d60d2372 (diff)
downloadorg.eclipse.tcf.agent-584b23f3e4958625a282a34a160ad8ae22608ee9.tar.gz
org.eclipse.tcf.agent-584b23f3e4958625a282a34a160ad8ae22608ee9.tar.xz
org.eclipse.tcf.agent-584b23f3e4958625a282a34a160ad8ae22608ee9.zip
TCF Agent: Got rid of compiler warning: function without return
-rw-r--r--framework/waitpid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/waitpid.c b/framework/waitpid.c
index 0ad8cf49..65cb5f63 100644
--- a/framework/waitpid.c
+++ b/framework/waitpid.c
@@ -57,6 +57,7 @@ typedef struct WaitPIDThread {
DWORD thread;
HANDLE handles[MAX_HANDLES];
DWORD handle_cnt;
+ int shutdown;
struct WaitPIDThread * next;
} WaitPIDThread;
@@ -80,7 +81,7 @@ static void waitpid_event(void * args) {
static DWORD WINAPI waitpid_thread_func(LPVOID x) {
WaitPIDThread * thread = (WaitPIDThread *)x;
check_error_win32(WaitForSingleObject(semaphore, INFINITE) != WAIT_FAILED);
- for (;;) {
+ while (!thread->shutdown) {
DWORD n = 0;
HANDLE arr[MAX_HANDLES];
DWORD cnt = thread->handle_cnt;
@@ -96,6 +97,7 @@ static DWORD WINAPI waitpid_thread_func(LPVOID x) {
thread->handle_cnt--;
}
}
+ return 0;
}
static void init(void) {

Back to the top