diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2008-01-04 06:38:06 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2008-01-04 06:38:06 +0000 |
commit | 42fce5d39b324beb9a0862e89a8d12008faaad6b (patch) | |
tree | 46337f914e7305ba5fdb39c7cbdd1d7bd21e95e8 /cpukit/sapi/src/exshutdown.c | |
parent | 2007-12-28 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-42fce5d39b324beb9a0862e89a8d12008faaad6b.tar.bz2 |
2008-01-03 Till Straumann <strauman@slac.stanford.edu>
* score/src/threadhandler.c, sapi/src/exshutdown.c:
cannot call _fini via atexit() from rtems_shutdown_executive()
because at the point where rtems_shutdown_executive is called
the C-library is already dead.
Instead, register an atexit(_fini) after calling _init().
Diffstat (limited to 'cpukit/sapi/src/exshutdown.c')
-rw-r--r-- | cpukit/sapi/src/exshutdown.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cpukit/sapi/src/exshutdown.c b/cpukit/sapi/src/exshutdown.c index 5db40afa97..a136391048 100644 --- a/cpukit/sapi/src/exshutdown.c +++ b/cpukit/sapi/src/exshutdown.c @@ -19,10 +19,6 @@ #include <rtems/score/sysstate.h> #include <rtems/score/thread.h> -#if defined(__USE_INIT_FINI__) -#include <stdlib.h> /* for atexit() */ -#endif - /* * rtems_shutdown_executive * @@ -40,11 +36,6 @@ void rtems_shutdown_executive( ) { if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { - - #if defined(__USE_INIT_FINI__) - extern void _fini( void ); - atexit( _fini ); - #endif _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } |