From 15a9943b535f3f5e7c867d35d6da230504db86bb Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 19 Nov 2007 15:57:39 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@99 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chthreads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/chthreads.c') diff --git a/src/chthreads.c b/src/chthreads.c index 9729a9b59..f58e58ebe 100644 --- a/src/chthreads.c +++ b/src/chthreads.c @@ -198,7 +198,7 @@ void chThdExit(t_msg msg) { currp->p_exitcode = msg; /* Post mortem info. */ #ifdef CH_USE_WAITEXIT while (notempty(&currp->p_waiting)) - chSchReadyI(list_remove(&currp->p_waiting)); + chSchReadyI(list_remove(&currp->p_waiting), RDY_OK); #endif #ifdef CH_USE_EXIT_EVENT chEvtSendI(&currp->p_exitesource); -- cgit v1.2.3