forked from Imagelibrary/rtems
added code to prevent attempts to clean up the library when rtems is
down.
This commit is contained in:
@@ -79,6 +79,14 @@ extern void _reclaim_reent(struct _reent *);
|
||||
void
|
||||
libc_wrapup(void)
|
||||
{
|
||||
/*
|
||||
* In case RTEMS is already down, don't do this. It could be
|
||||
* dangerous.
|
||||
*/
|
||||
|
||||
if (!_System_state_Is_up(_System_state_Get()))
|
||||
return;
|
||||
|
||||
_wrapup_reent(0);
|
||||
if (_REENT != &libc_global_reent)
|
||||
{
|
||||
|
||||
@@ -79,6 +79,14 @@ extern void _reclaim_reent(struct _reent *);
|
||||
void
|
||||
libc_wrapup(void)
|
||||
{
|
||||
/*
|
||||
* In case RTEMS is already down, don't do this. It could be
|
||||
* dangerous.
|
||||
*/
|
||||
|
||||
if (!_System_state_Is_up(_System_state_Get()))
|
||||
return;
|
||||
|
||||
_wrapup_reent(0);
|
||||
if (_REENT != &libc_global_reent)
|
||||
{
|
||||
|
||||
@@ -79,6 +79,14 @@ extern void _reclaim_reent(struct _reent *);
|
||||
void
|
||||
libc_wrapup(void)
|
||||
{
|
||||
/*
|
||||
* In case RTEMS is already down, don't do this. It could be
|
||||
* dangerous.
|
||||
*/
|
||||
|
||||
if (!_System_state_Is_up(_System_state_Get()))
|
||||
return;
|
||||
|
||||
_wrapup_reent(0);
|
||||
if (_REENT != &libc_global_reent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user