aboutsummaryrefslogtreecommitdiffstats
path: root/src/chthreads.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chthreads.c')
-rw-r--r--src/chthreads.c2
1 files changed, 1 insertions, 1 deletions
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);