diff -r 9e496a2aadca -r b9274b595650 drivers/timers_kernel/timers_kernel.c --- a/drivers/timers_kernel/timers_kernel.c Fri Nov 12 22:02:32 2010 +0100 +++ b/drivers/timers_kernel/timers_kernel.c Fri Nov 12 22:24:06 2010 +0100 @@ -1,5 +1,5 @@ /* -This file is part of CanFestival, a library implementing CanOpen Stack. +This file is part of CanFestival, a library implementing CanOpen Stack. Copyright (C): Edouard TISSERANT and Francis DUPIN @@ -111,5 +111,9 @@ void WaitReceiveTaskEnd(TASK_HANDLE *Thread) { - force_sig (SIGTERM, *Thread); + /* join thread here because force_sig() does not work */ + while((*Thread)->state <= 0) + { + ; /* >0 means stopped */ + } }