forked from Imagelibrary/rtems
2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/psignal.c: Do not allocate any memory for queued signals if the configuration parameter is 0. Before we would end up with an allocation of 0 which rounded up and wasted some memory when POSIX was configured.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* posix/src/psignal.c: Do not allocate any memory for queued signals if
|
||||||
|
the configuration parameter is 0. Before we would end up with an
|
||||||
|
allocation of 0 which rounded up and wasted some memory when POSIX
|
||||||
|
was configured.
|
||||||
|
|
||||||
2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* libcsupport/src/newlibc_exit.c: Only run the fini section on exit if
|
* libcsupport/src/newlibc_exit.c: Only run the fini section on exit if
|
||||||
|
|||||||
@@ -205,6 +205,7 @@ void _POSIX_signals_Manager_Initialization(
|
|||||||
for ( signo=1 ; signo<= SIGRTMAX ; signo++ )
|
for ( signo=1 ; signo<= SIGRTMAX ; signo++ )
|
||||||
_Chain_Initialize_empty( &_POSIX_signals_Siginfo[ signo ] );
|
_Chain_Initialize_empty( &_POSIX_signals_Siginfo[ signo ] );
|
||||||
|
|
||||||
|
if ( maximum_queued_signals ) {
|
||||||
_Chain_Initialize(
|
_Chain_Initialize(
|
||||||
&_POSIX_signals_Inactive_siginfo,
|
&_POSIX_signals_Inactive_siginfo,
|
||||||
_Workspace_Allocate_or_fatal_error(
|
_Workspace_Allocate_or_fatal_error(
|
||||||
@@ -213,4 +214,7 @@ void _POSIX_signals_Manager_Initialization(
|
|||||||
maximum_queued_signals,
|
maximum_queued_signals,
|
||||||
sizeof( POSIX_signals_Siginfo_node )
|
sizeof( POSIX_signals_Siginfo_node )
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
_Chain_Initialize_empty( &_POSIX_signals_Inactive_siginfo );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user