From eafd6989b7e58e31ce92364d87f6e6ab72a7c3b9 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 9 Apr 1997 20:03:35 +0000 Subject: enhanced rtems_shutdown_executive to insure that no attempt will be made to shut the system down when it is down. --- cpukit/sapi/src/exinit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c index 89d5ed6f70..37e2cc4df1 100644 --- a/cpukit/sapi/src/exinit.c +++ b/cpukit/sapi/src/exinit.c @@ -290,5 +290,8 @@ void rtems_shutdown_executive( unsigned32 result ) { - _Thread_Stop_multitasking(); + if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { + _System_state_Set( SYSTEM_STATE_SHUTDOWN ); + _Thread_Stop_multitasking(); + } } -- cgit v1.2.3