diff options
Diffstat (limited to 'c/src')
-rw-r--r-- | c/src/exec/itron/src/sus_tsk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/exec/itron/src/sus_tsk.c b/c/src/exec/itron/src/sus_tsk.c index 907b708843..91193ed12a 100644 --- a/c/src/exec/itron/src/sus_tsk.c +++ b/c/src/exec/itron/src/sus_tsk.c @@ -6,6 +6,7 @@ * $Id$ */ +#include <limits.h> #include <itron.h> #include <rtems/score/thread.h> @@ -43,6 +44,9 @@ ER sus_tsk( if ( _Thread_Is_executing( the_thread ) ) _ITRON_return_errorno( E_OBJ ); + if (the_thread->suspend_count == INT_MAX ) + _ITRON_return_errorno( E_QOVR ); + _Thread_Suspend( the_thread ); break; } |