summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-09 20:03:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-09 20:03:35 +0000
commiteafd6989b7e58e31ce92364d87f6e6ab72a7c3b9 (patch)
tree510aa89ec45aa6a85f55ee8c654587a3886ccc25 /cpukit
parentadded support for statistics on rate monotonic periods. (diff)
downloadrtems-eafd6989b7e58e31ce92364d87f6e6ab72a7c3b9.tar.bz2
enhanced rtems_shutdown_executive to insure that no attempt will
be made to shut the system down when it is down.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/sapi/src/exinit.c5
1 files changed, 4 insertions, 1 deletions
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();
+ }
}