From 0fa51b5b0a8bfa523974a903f2daa45e797097b5 Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Tue, 16 Nov 1999 22:46:55 +0000 Subject: Added code to catch the error of suspend count exceding the counter value. --- c/src/exec/itron/src/sus_tsk.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'c/src') 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 #include #include @@ -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; } -- cgit v1.2.3